|
⇤ ← Revision 1 as of 2009-11-17 19:47:04
Size: 894
Comment: create page, add content
|
Size: 916
Comment: content added
|
| Deletions are marked like this. | Additions are marked like this. |
| Line 5: | Line 5: |
| Use this function to unlock the callback function for a specified device. | Use this function to unlock the audio callback function for a specified device. |
| Line 25: | Line 25: |
| 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 for that device is not running. |
SDL_UnlockAudioDevice
Use this function to unlock the audio callback function for a specified device.
Syntax
void SDL_UnlockAudioDevice(SDL_AudioDeviceID dev)
Function Parameters
dev |
the ID of the device to be unlocked |
Code Examples
You can add your code example here
Remarks
Unlocks a previous SDL_LockAudioDevice() call.
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.
