Skip to content

Commit

Permalink
SDL: set the playback format with native endianness
Browse files Browse the repository at this point in the history
This fixes sound playback on big-endian machines.

Fixes: #329
  • Loading branch information
mardy authored and flibitijibibo committed Jan 22, 2024
1 parent fc47ca1 commit 61e80fd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/FAudio_platform_sdl2.c
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ void FAudio_PlatformInit(

/* Build the device spec */
want.freq = mixFormat->Format.nSamplesPerSec;
want.format = AUDIO_F32;
want.format = AUDIO_F32SYS;
want.channels = mixFormat->Format.nChannels;
want.silence = 0;
want.callback = FAudio_INTERNAL_MixCallback;
Expand Down

0 comments on commit 61e80fd

Please sign in to comment.