diff options
Diffstat (limited to 'src/player.c')
-rw-r--r-- | src/player.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/player.c b/src/player.c index e895558..9a83256 100644 --- a/src/player.c +++ b/src/player.c @@ -195,6 +195,7 @@ static WaitressCbReturn_t BarPlayerAACCb (void *ptr, size_t size, void *stream) return WAITRESS_CB_RET_ERR; } audioOutDriver = ao_default_driver_id(); + memset (&format, 0, sizeof (format)); format.bits = 16; format.channels = player->channels; format.rate = player->samplerate; @@ -353,6 +354,7 @@ static WaitressCbReturn_t BarPlayerMp3Cb (void *ptr, size_t size, void *stream) player->channels = player->mp3Synth.pcm.channels; player->samplerate = player->mp3Synth.pcm.samplerate; audioOutDriver = ao_default_driver_id(); + memset (&format, 0, sizeof (format)); format.bits = 16; format.channels = player->channels; format.rate = player->samplerate; |