Results 1 - 13 of 13 results out of about 6839 pages. (2.90 seconds)
- SDL_LockAudio . . . 7 matches
- ...
= SDL_LockAudio =
This function is a legacy means of locking the audio device. New programs might want to use [[SDL_LockAudioDevice]]() instead.
<<TableOfContents()>>
== Synta...
- SDL_LockAudioDevice . . . 5 matches
- ...
= SDL_LockAudioDevice =
Use this function to lock out the audio callback function for a specified device.
<<TableOfContents()>>
== Syntax ==
{{{#!highlight cpp
void SDL_LockAu...
- SDL_UnlockAudioDevice . . . 4 matches
- ...
extern SDL_AudioDeviceID devid;
SDL_Delay(2000); // callback runs for 2 seconds.
SDL_LockAudioDevice(devid);
printf("The audio callback can't be running right now!\n");
SDL_Dela...
- SDL_PauseAudioDevice . . . 3 matches
- ... will start the device playing again, and vice versa. This is different from how [[SDL_LockAudioDevice]]() works.
If you just need to protect a few variables from race conditions...
- SDL_UnlockAudio . . . 2 matches
- ... at a time in real life, please.
SDL_Delay(2000); // callback runs for 2 seconds.
SDL_LockAudio();
printf("The audio callback can't be running right now!\n");
SDL_Delay(2000); /...
- SDL_OpenAudioDevice . . . 2 matches
- ...ions between your callback and other threads without fully pausing playback with [[SDL_LockAudioDevice]](). For more information about the callback, see [[SDL_AudioSpec]].
== Ve...
- SDL_QueueAudio . . . 1 match
- ...o callback or queue audio with this function, but not both.
You should not call [[SDL_LockAudio]]() on the device before queueing; SDL handles locking internally for this functio...
- SDL_OpenAudio . . . 1 match
- ...en at a time with this function.
== Related Functions ==
.[[SDL_CloseAudio]]
.[[SDL_LockAudio]]
.[[SDL_PauseAudio]]
.[[SDL_UnlockAudio]]
== Related Structures ==
.[[SDL_Aud...
- SDL_GetQueuedAudioSize . . . 1 match
- ...ack or queue audio with [[SDL_QueueAudio]](), but not both.
You should not call [[SDL_LockAudio]]() on the device before querying; SDL handles locking internally for this functio...
- SDL_DequeueAudio . . . 1 match
- ...allback, or dequeue audio with this function, but not both.
You should not call [[SDL_LockAudio]]() on the device before queueing; SDL handles locking internally for this functio...
- SDL_ClearQueuedAudio . . . 1 match
- ...ack or queue audio with [[SDL_QueueAudio]](), but not both.
You should not call [[SDL_LockAudio]]() on the device before clearing the queue; SDL handles locking internally for th...
- CategoryAudio . . . 1 match
- ...##master-page:CategoryTemplate
##master-date:Unknown-Date
#format wiki
#language en
= Audio Device Management and Audio Playback =
'''Include File(s):''' [[http://hg.libsdl.org/...
- CategoryAPI . . . 1 match
- ...##master-page:CategoryTemplate
##master-date:Unknown-Date
#format wiki
#language en
= SDL 2.0 API by Name =
<<TableOfContents()>>
== Hints ==
<<FullSearchCached(category:Catego...
