X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?p=libpicofe.git;a=blobdiff_plain;f=sndout_sdl.c;fp=sndout_sdl.c;h=c0c57ab6745de82cdfd246df9885194c92df37ab;hp=a7be5ed7e0ae1eea6877d882306113fc4e6f2766;hb=7167e5f3376f0d0692ae102ed2df1ef5d2cc199a;hpb=33787db41d955f8dcafe833097f2cc87d70186ec diff --git a/sndout_sdl.c b/sndout_sdl.c index a7be5ed..c0c57ab 100644 --- a/sndout_sdl.c +++ b/sndout_sdl.c @@ -62,7 +62,7 @@ int sndout_sdl_init(void) int sndout_sdl_start(int rate, int stereo) { - SDL_AudioSpec desired; + SDL_AudioSpec desired = { 0 }; int samples, shift; int ret; @@ -70,7 +70,7 @@ int sndout_sdl_start(int rate, int stereo) sndout_sdl_stop(); desired.freq = rate; - desired.format = AUDIO_S16LSB; + desired.format = AUDIO_S16SYS; desired.channels = stereo ? 2 : 1; desired.callback = callback; desired.userdata = NULL;