mirror of
https://github.com/RaySollium99/libpicofe.git
synced 2025-09-07 07:38:04 -04:00
use native byte order for audio
This commit is contained in:
parent
3ccc039bba
commit
4e0bc79405
2 changed files with 3 additions and 3 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue