audio: Added SDL_AudioDeviceStreamPaused.
We had the other two wrapper functions to pause and resume, and forgot query.
This commit is contained in:
6 files changed
+33
-1
No files matched your search
@@ -2130,6 +2130,16 @@ bool SDL_ResumeAudioStreamDevice(SDL_AudioStream *stream)
|
||||
return SDL_ResumeAudioDevice(devid);
|
||||
}
|
||||
|
||||
bool SDL_AudioStreamDevicePaused(SDL_AudioStream *stream)
|
||||
{
|
||||
SDL_AudioDeviceID devid = SDL_GetAudioStreamDevice(stream);
|
||||
if (!devid) {
|
||||
return false;
|
||||
}
|
||||
|
||||
return SDL_AudioDevicePaused(devid);
|
||||
}
|
||||
|
||||
#if SDL_BYTEORDER == SDL_LIL_ENDIAN
|
||||
#define NATIVE(type) SDL_AUDIO_##type##LE
|
||||
#define SWAPPED(type) SDL_AUDIO_##type##BE
|
||||
|
||||
Reference in new issue
Block a user