From 168fbd94f4f1ce710a80603db63478bda31c60f8 Mon Sep 17 00:00:00 2001 From: Lars-Dominik Braun Date: Sun, 19 Dec 2010 15:04:22 +0100 Subject: Fix wrong assumption about endianess of audio frames Fixes issue #66 (audio playback on big-endian machines). --- src/player.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') 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; -- cgit v1.2.3