|
⇤ ← Revision 1 as of 2009-11-17 18:48:27
Size: 841
Comment: create page, add content
|
Size: 837
Comment:
|
| Deletions are marked like this. | Additions are marked like this. |
| Line 23: | Line 23: |
| 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 is not running. | 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 is not running. |
SDL_LockAudioDevice
Use this function to lock out the callback function for a specified device.
Syntax
void SDL_LockAudioDevice(SDL_AudioDeviceID dev)
Function Parameters
dev |
the ID of the device to be locked |
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 is not running.
Do not call these from the callback function or you will cause deadlock.
