mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-10-16 06:45:59 +00:00
audio: Added SDL_AudioDeviceStreamPaused.
We had the other two wrapper functions to pause and resume, and forgot query.
This commit is contained in:
@@ -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
|
||||
|
@@ -1230,6 +1230,7 @@ SDL3_0.0.0 {
|
||||
SDL_GetTrayMenuParentEntry;
|
||||
SDL_GetTrayMenuParentTray;
|
||||
SDL_GetThreadState;
|
||||
SDL_AudioStreamDevicePaused;
|
||||
# extra symbols go here (don't modify this line)
|
||||
local: *;
|
||||
};
|
||||
|
@@ -1255,3 +1255,4 @@
|
||||
#define SDL_GetTrayMenuParentEntry SDL_GetTrayMenuParentEntry_REAL
|
||||
#define SDL_GetTrayMenuParentTray SDL_GetTrayMenuParentTray_REAL
|
||||
#define SDL_GetThreadState SDL_GetThreadState_REAL
|
||||
#define SDL_AudioStreamDevicePaused SDL_AudioStreamDevicePaused_REAL
|
||||
|
@@ -1263,3 +1263,4 @@ SDL_DYNAPI_PROC(SDL_TrayMenu*,SDL_GetTrayEntryParent,(SDL_TrayEntry *a),(a),retu
|
||||
SDL_DYNAPI_PROC(SDL_TrayEntry*,SDL_GetTrayMenuParentEntry,(SDL_TrayMenu *a),(a),return)
|
||||
SDL_DYNAPI_PROC(SDL_Tray*,SDL_GetTrayMenuParentTray,(SDL_TrayMenu *a),(a),return)
|
||||
SDL_DYNAPI_PROC(SDL_ThreadState,SDL_GetThreadState,(SDL_Thread *a),(a),return)
|
||||
SDL_DYNAPI_PROC(bool,SDL_AudioStreamDevicePaused,(SDL_AudioStream *a),(a),return)
|
||||
|
Reference in New Issue
Block a user