Skip to content

Commit f04a683

Browse files
fix(simu): audio uses signed 16 bit
1 parent a3af3bf commit f04a683

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

radio/src/targets/simu/simuaudio.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
#include <stdint.h>
2626
#include <SDL.h>
2727

28-
#define SIMU_AUDIO_FMT AUDIO_U16SYS
28+
#define SIMU_AUDIO_FMT AUDIO_S16SYS
2929

3030
static SDL_AudioDeviceID _sdl_audio_device = 0;
3131

@@ -79,6 +79,7 @@ bool simuAudioInit()
7979
.freq = AUDIO_SAMPLE_RATE,
8080
.format = SIMU_AUDIO_FMT,
8181
.channels = 1,
82+
.silence = 0,
8283
.samples = 1024,
8384
};
8485

0 commit comments

Comments
 (0)