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:
wm4 2015-06-25 20:17:14 +02:00
parent 5a3cdb8f1e
commit 3c61e6eb4e
1 changed files with 3 additions and 1 deletions

View File

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