|
Size: 755
Comment: create page, add content
|
Size: 749
Comment:
|
| Deletions are marked like this. | Additions are marked like this. |
| Line 22: | Line 22: |
| The lock manipulated by these functions protects the callback function. During a [[SDL_LockAudio]]()/[[SDL_UnlockAudio]]() 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_LockAudio]]()/SDL_UnlockAudio() pair, you can be guaranteed that the callback function is not running. |
| Line 27: | Line 27: |
| .[[SDL_LockAudio]] | |
| Line 28: | Line 29: |
| .[[SDL_UnlockAudio]] |
SDL_UnlockAudio
Use this function to unlock the callback function.
Syntax
void SDL_UnlockAudio(void)
Code Examples
You can add your code example here
Remarks
Unlocks a previous SDL_LockAudio() call.
The lock manipulated by these functions protects the callback function. During a SDL_LockAudio()/SDL_UnlockAudio() 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.
