|
@@ -1577,6 +1577,25 @@ extern SDL_DECLSPEC bool SDLCALL SDL_PauseAudioStreamDevice(SDL_AudioStream *str
|
|
|
*/
|
|
|
extern SDL_DECLSPEC bool SDLCALL SDL_ResumeAudioStreamDevice(SDL_AudioStream *stream);
|
|
|
|
|
|
+/**
|
|
|
+ * Use this function to query if an audio device associated with a stream is paused.
|
|
|
+ *
|
|
|
+ * Unlike in SDL2, audio devices start in an _unpaused_ state, since an app
|
|
|
+ * has to bind a stream before any audio will flow.
|
|
|
+ *
|
|
|
+ * \param stream the audio stream associated with the audio device to query.
|
|
|
+ * \returns true if device is valid and paused, false otherwise.
|
|
|
+ *
|
|
|
+ * \threadsafety It is safe to call this function from any thread.
|
|
|
+ *
|
|
|
+ * \since This function is available since SDL 3.1.3.
|
|
|
+ *
|
|
|
+ * \sa SDL_PauseAudioStreamDevice
|
|
|
+ * \sa SDL_ResumeAudioStreamDevice
|
|
|
+ */
|
|
|
+extern SDL_DECLSPEC bool SDLCALL SDL_AudioStreamDevicePaused(SDL_AudioStream *stream);
|
|
|
+
|
|
|
+
|
|
|
/**
|
|
|
* Lock an audio stream for serialized access.
|
|
|
*
|