mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-23 23:58:17 +00:00
osxaudiosink: Handle endianness correctly
This commit is contained in:
parent
85102c49d5
commit
cfd9071f79
1 changed files with 3 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue