osxaudiosink: Handle endianness correctly
This commit is contained in:
parent
85102c49d5
commit
cfd9071f79
@ -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…
x
Reference in New Issue
Block a user