Transcode using the same number of channels as the datasource

We also need to do the same for sample rate, but then we need to restart the audio unit graph
This commit is contained in:
Daniel Cohen Gindi 2014-12-17 17:30:19 +02:00
parent 477b1f175f
commit 61cb8a8a7b
1 changed files with 2 additions and 0 deletions

View File

@ -1879,6 +1879,8 @@ static BOOL GetHardwareCodecClassDesc(UInt32 formatId, AudioClassDescription* cl
[self destroyAudioConverter];
canonicalAudioStreamBasicDescription.mChannelsPerFrame = asbd->mChannelsPerFrame;
AudioClassDescription classDesc;
if (GetHardwareCodecClassDesc(asbd->mFormatID, &classDesc))