summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLars-Dominik Braun <PromyLOPh@lavabit.com>2010-04-07 10:22:23 +0200
committerLars-Dominik Braun <PromyLOPh@lavabit.com>2010-04-07 10:22:23 +0200
commitf6a50cc2163163be7d09ec1529f1fd5a4d3d2f6c (patch)
treee24f6c4391fec83af70d29c73a89f264d19cca6c /src
parentccd1d8e25cd4aafe3de98e3dcb57cfde45006011 (diff)
downloadpianobar-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.
Diffstat (limited to 'src')
-rw-r--r--src/player.c2
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;