mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-09-07 20:08:13 +00:00
loopwave: Use SDL_ResumeAudioStreamDevice.
...instead of the more-wordy: `SDL_ResumeAudioDevice(SDL_GetAudioStreamDevice(stream));`
This commit is contained in:
@@ -114,7 +114,7 @@ int SDL_AppInit(void **appstate, int argc, char *argv[])
|
|||||||
SDL_LogError(SDL_LOG_CATEGORY_APPLICATION, "Couldn't create audio stream: %s\n", SDL_GetError());
|
SDL_LogError(SDL_LOG_CATEGORY_APPLICATION, "Couldn't create audio stream: %s\n", SDL_GetError());
|
||||||
return SDL_APP_FAILURE;
|
return SDL_APP_FAILURE;
|
||||||
}
|
}
|
||||||
SDL_ResumeAudioDevice(SDL_GetAudioStreamDevice(stream));
|
SDL_ResumeAudioStreamDevice(stream);
|
||||||
|
|
||||||
return SDL_APP_CONTINUE;
|
return SDL_APP_CONTINUE;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user