diff options
author | Lars-Dominik Braun <PromyLOPh@lavabit.com> | 2010-04-07 10:22:23 +0200 |
---|---|---|
committer | Lars-Dominik Braun <PromyLOPh@lavabit.com> | 2010-04-07 10:22:23 +0200 |
commit | f6a50cc2163163be7d09ec1529f1fd5a4d3d2f6c (patch) | |
tree | e24f6c4391fec83af70d29c73a89f264d19cca6c | |
parent | ccd1d8e25cd4aafe3de98e3dcb57cfde45006011 (diff) | |
download | pianobar-f6a50cc2163163be7d09ec1529f1fd5a4d3d2f6c.tar.gz pianobar-f6a50cc2163163be7d09ec1529f1fd5a4d3d2f6c.tar.bz2 pianobar-f6a50cc2163163be7d09ec1529f1fd5a4d3d2f6c.zip |
libao 1.0.0 compatibility
Fixes bug #16.
ao_sample_format structure has been updated, matrix must be NULL.
-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; |