mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-03 04:52:28 +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 {
|
} else {
|
||||||
format.mFormatFlags |= kAudioFormatFlagIsAlignedHigh;
|
format.mFormatFlags |= kAudioFormatFlagIsAlignedHigh;
|
||||||
}
|
}
|
||||||
|
if (spec->bigend) {
|
||||||
|
format.mFormatFlags |= kAudioFormatFlagIsBigEndian;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
format.mBytesPerFrame = spec->channels * (width >> 3);
|
format.mBytesPerFrame = spec->channels * (width >> 3);
|
||||||
format.mBitsPerChannel = depth;
|
format.mBitsPerChannel = depth;
|
||||||
|
|
Loading…
Reference in a new issue