mirror of
https://github.com/mpv-player/mpv
synced 2025-02-23 16:36:56 +00:00
ao_coreaudio_utils: compare full AudioStreamBasicDescription
Originally, this was written for comparing the sample format only, but ca_change_physical_format_sync() actually expects that the full format is compared. (For all other uses it doesn't matter.)
This commit is contained in:
parent
5a3cdb8f1e
commit
3c61e6eb4e
@ -222,7 +222,9 @@ bool ca_asbd_equals(const AudioStreamBasicDescription *a,
|
||||
a->mBitsPerChannel == b->mBitsPerChannel &&
|
||||
ca_normalize_formatid(a->mFormatID) ==
|
||||
ca_normalize_formatid(b->mFormatID) &&
|
||||
a->mBytesPerPacket == b->mBytesPerPacket;
|
||||
a->mBytesPerPacket == b->mBytesPerPacket &&
|
||||
a->mChannelsPerFrame == b->mChannelsPerFrame &&
|
||||
a->mSampleRate == b->mSampleRate;
|
||||
}
|
||||
|
||||
// Return the AF_FORMAT_* (AF_FORMAT_S16 etc.) corresponding to the asbd.
|
||||
|
Loading…
Reference in New Issue
Block a user