audio: Added SDL_AudioDeviceStreamPaused.

We had the other two wrapper functions to pause and resume, and forgot query.
This commit is contained in:
Ryan C. Gordon committed 2025-01-09 01:36:57 -05:00
1 parent f61860fa93
commit 3f7f632e14
6 files changed
+33 -1

No files matched your search

+10
View File
@@ -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