diff --git a/engine/platform/sdl1/s_sdl1.c b/engine/platform/sdl1/s_sdl1.c index 03de7e5b..93e955ae 100644 --- a/engine/platform/sdl1/s_sdl1.c +++ b/engine/platform/sdl1/s_sdl1.c @@ -106,7 +106,7 @@ qboolean SNDDMA_Init( void ) memset( &desired, 0, sizeof( desired ) ); desired.freq = SOUND_DMA_SPEED; - desired.format = AUDIO_S16LSB; + desired.format = AUDIO_S16SYS; desired.samples = 1024; desired.channels = 2; desired.callback = SDL_SoundCallback; @@ -119,7 +119,7 @@ qboolean SNDDMA_Init( void ) return false; } - if( obtained.format != AUDIO_S16LSB ) + if( obtained.format != AUDIO_S16SYS ) { Con_Printf( "SDL audio format %d unsupported.\n", obtained.format ); goto fail; diff --git a/engine/platform/sdl2/s_sdl2.c b/engine/platform/sdl2/s_sdl2.c index 53183bc6..0bf8f230 100644 --- a/engine/platform/sdl2/s_sdl2.c +++ b/engine/platform/sdl2/s_sdl2.c @@ -123,7 +123,7 @@ qboolean SNDDMA_Init( void ) memset( &desired, 0, sizeof( desired ) ); desired.freq = SOUND_DMA_SPEED; - desired.format = AUDIO_S16LSB; + desired.format = AUDIO_S16SYS; desired.samples = 1024; desired.channels = 2; desired.callback = SDL_SoundCallback; @@ -136,7 +136,7 @@ qboolean SNDDMA_Init( void ) return false; } - if( obtained.format != AUDIO_S16LSB ) + if( obtained.format != AUDIO_S16SYS ) { Con_Printf( "SDL audio format %d unsupported.\n", obtained.format ); goto fail; @@ -277,7 +277,7 @@ qboolean VoiceCapture_Init( void ) SDL_zero( wanted ); wanted.freq = voice.samplerate; - wanted.format = AUDIO_S16LSB; + wanted.format = AUDIO_S16SYS; wanted.channels = VOICE_PCM_CHANNELS; wanted.samples = voice.frame_size; wanted.callback = SDL_SoundInputCallback;