Wiki Page Content

Differences between revisions 6 and 7
Revision 6 as of 2009-11-24 21:27:52
Size: 907
Editor: SheenaSmith
Comment: add categories
Revision 7 as of 2010-10-12 00:59:45
Size: 1142
Editor: SheenaSmith
Comment: update content - pointers, structs
Deletions are marked like this. Additions are marked like this.
Line 15: Line 15:
||'''dev'''||the ID of the device to be locked|| ||'''dev'''||the ID of the device ^previously opened with [[SDL_OpenAudioDevice]]()^ to be locked||

<<Color2(green,The addition above is for consistency only. Should SDL_Audio``DeviceID be specifically mentioned like a struct would be although it is a typedef? It has no page.)>>

SDL_LockAudioDevice

Use this function to lock out the audio callback function for a specified device.

Syntax

void SDL_LockAudioDevice(SDL_AudioDeviceID dev)

Function Parameters

dev

the ID of the device previously opened with [[SDL_OpenAudioDevice]]() to be locked

green

Code Examples

You can add your code example here

Remarks

The lock manipulated by these functions protects the callback function. During a SDL_LockAudioDevice()/SDL_UnlockAudioDevice() pair, you can be guaranteed that the callback function for that device is not running.

Do not call these from the callback function or you will cause deadlock.


CategoryAPI, CategoryAudio

None: SDL_LockAudioDevice (last edited 2015-01-09 23:01:58 by PhilippWiesemann)

(Page Info.)
Feedback
Please include your contact information if you'd like to receive a reply.
Submit