diff options
author | Lars-Dominik Braun <lars@6xq.net> | 2010-12-19 15:04:22 +0100 |
---|---|---|
committer | Lars-Dominik Braun <lars@6xq.net> | 2010-12-19 15:04:22 +0100 |
commit | 168fbd94f4f1ce710a80603db63478bda31c60f8 (patch) | |
tree | 1b529b800721c4ed8743d41895a2e1913bdf1809 /src | |
parent | ed8029f2dd2405da766c3cae716a94c40dde0115 (diff) | |
download | pianobar-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.c | 4 |
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; |