From cfd9071f7994ed21de095ea11aeb0a0708d676f8 Mon Sep 17 00:00:00 2001 From: Josep Torra Date: Mon, 4 Jun 2012 08:10:15 +0200 Subject: [PATCH] osxaudiosink: Handle endianness correctly --- sys/osxaudio/gstosxringbuffer.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sys/osxaudio/gstosxringbuffer.c b/sys/osxaudio/gstosxringbuffer.c index e59889f525..cb77162ccc 100644 --- a/sys/osxaudio/gstosxringbuffer.c +++ b/sys/osxaudio/gstosxringbuffer.c @@ -354,6 +354,9 @@ gst_osx_ring_buffer_acquire (GstRingBuffer * buf, GstRingBufferSpec * spec) } else { format.mFormatFlags |= kAudioFormatFlagIsAlignedHigh; } + if (spec->bigend) { + format.mFormatFlags |= kAudioFormatFlagIsBigEndian; + } } format.mBytesPerFrame = spec->channels * (width >> 3); format.mBitsPerChannel = depth;