Fix audio on big endian machines; see #56

This commit is contained in:
Dominic Szablewski 2023-08-28 17:22:48 +02:00
parent 78f452decf
commit 4c76aadf80

View file

@ -390,7 +390,7 @@ int main(int argc, char *argv[]) {
audio_device = SDL_OpenAudioDevice(NULL, 0, &(SDL_AudioSpec){
.freq = 44100,
.format = AUDIO_F32,
.format = AUDIO_F32SYS,
.channels = 2,
.samples = 1024,
.callback = platform_audio_callback