[SDL] fixed sound format on big-endian platforms

This commit is contained in:
ekeeke 2020-05-01 09:55:22 +02:00
parent 9d288726bf
commit 9630e59552
2 changed files with 2 additions and 2 deletions

View File

@ -74,7 +74,7 @@ static int sdl_sound_init()
} }
as_desired.freq = SOUND_FREQUENCY; as_desired.freq = SOUND_FREQUENCY;
as_desired.format = AUDIO_S16LSB; as_desired.format = AUDIO_S16SYS;
as_desired.channels = 2; as_desired.channels = 2;
as_desired.samples = SOUND_SAMPLES_SIZE; as_desired.samples = SOUND_SAMPLES_SIZE;
as_desired.callback = sdl_sound_callback; as_desired.callback = sdl_sound_callback;

View File

@ -77,7 +77,7 @@ static int sdl_sound_init()
} }
as_desired.freq = SOUND_FREQUENCY; as_desired.freq = SOUND_FREQUENCY;
as_desired.format = AUDIO_S16LSB; as_desired.format = AUDIO_S16SYS;
as_desired.channels = 2; as_desired.channels = 2;
as_desired.samples = SOUND_SAMPLES_SIZE; as_desired.samples = SOUND_SAMPLES_SIZE;
as_desired.callback = sdl_sound_callback; as_desired.callback = sdl_sound_callback;