summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLars-Dominik Braun <lars@6xq.net>2010-12-19 15:04:22 +0100
committerLars-Dominik Braun <lars@6xq.net>2010-12-19 15:04:22 +0100
commit168fbd94f4f1ce710a80603db63478bda31c60f8 (patch)
tree1b529b800721c4ed8743d41895a2e1913bdf1809 /src
parented8029f2dd2405da766c3cae716a94c40dde0115 (diff)
downloadpianobar-windows-168fbd94f4f1ce710a80603db63478bda31c60f8.tar.gz
pianobar-windows-168fbd94f4f1ce710a80603db63478bda31c60f8.tar.bz2
pianobar-windows-168fbd94f4f1ce710a80603db63478bda31c60f8.zip
Fix wrong assumption about endianess of audio frames
Fixes issue #66 (audio playback on big-endian machines).
Diffstat (limited to 'src')
-rw-r--r--src/player.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/player.c b/src/player.c
index 18809bd..83c5713 100644
--- a/src/player.c
+++ b/src/player.c
@@ -199,7 +199,7 @@ static WaitressCbReturn_t BarPlayerAACCb (void *ptr, size_t size, void *stream)
format.bits = 16;
format.channels = player->channels;
format.rate = player->samplerate;
- format.byte_format = AO_FMT_LITTLE;
+ format.byte_format = AO_FMT_NATIVE;
if ((player->audioOutDevice = ao_open_live (audioOutDriver,
&format, NULL)) == NULL) {
/* we're not interested in the errno */
@@ -358,7 +358,7 @@ static WaitressCbReturn_t BarPlayerMp3Cb (void *ptr, size_t size, void *stream)
format.bits = 16;
format.channels = player->channels;
format.rate = player->samplerate;
- format.byte_format = AO_FMT_LITTLE;
+ format.byte_format = AO_FMT_NATIVE;
if ((player->audioOutDevice = ao_open_live (audioOutDriver,
&format, NULL)) == NULL) {
player->aoError = 1;