From 3c61e6eb4e2d340e959d5395ec7c61902fa28b1d Mon Sep 17 00:00:00 2001 From: wm4 Date: Thu, 25 Jun 2015 20:17:14 +0200 Subject: 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.) --- audio/out/ao_coreaudio_utils.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'audio') diff --git a/audio/out/ao_coreaudio_utils.c b/audio/out/ao_coreaudio_utils.c index 52b0e32194..aa1c9934d6 100644 --- a/audio/out/ao_coreaudio_utils.c +++ b/audio/out/ao_coreaudio_utils.c @@ -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. -- cgit v1.2.3