SDL_migration.cocci: Fix up SDL_(Pause|Unpause)Audio.
parent
0b6255551e
commit
6567285eae
|
@ -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);
|
||||||
+ }
|
+ }
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue