osxaudiosink: Handle endianness correctly

This commit is contained in:
Josep Torra 2012-06-04 08:10:15 +02:00 committed by Sebastian Dröge
parent 85102c49d5
commit cfd9071f79

View file

@ -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;