SDL_migration.cocci: Fix up SDL_(Pause|Unpause)Audio.

main
Ryan C. Gordon 2023-07-21 19:45:08 -04:00
parent 0b6255551e
commit 6567285eae
No known key found for this signature in database
GPG Key ID: FA148B892AB48044
1 changed files with 3 additions and 3 deletions

View File

@ -308,10 +308,10 @@ expression e;
+ SDL_PauseAudioDevice(e) + SDL_PauseAudioDevice(e)
| |
- SDL_PauseAudioDevice(e, 0) - SDL_PauseAudioDevice(e, 0)
+ SDL_PlayAudioDevice(e) + SDL_UnpauseAudioDevice(e)
| |
- SDL_PauseAudioDevice(e, SDL_FALSE) - SDL_PauseAudioDevice(e, SDL_FALSE)
+ SDL_PlayAudioDevice(e) + SDL_UnpauseAudioDevice(e)
) )
@@ @@
@ -321,7 +321,7 @@ expression e, pause_on;
+ if (pause_on) { + if (pause_on) {
+ SDL_PauseAudioDevice(e); + SDL_PauseAudioDevice(e);
+ } else { + } else {
+ SDL_PlayAudioDevice(e); + SDL_UnpauseAudioDevice(e);
+ } + }