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:
parent
477b1f175f
commit
61cb8a8a7b
|
|
@ -1879,6 +1879,8 @@ static BOOL GetHardwareCodecClassDesc(UInt32 formatId, AudioClassDescription* cl
|
|||
|
||||
[self destroyAudioConverter];
|
||||
|
||||
canonicalAudioStreamBasicDescription.mChannelsPerFrame = asbd->mChannelsPerFrame;
|
||||
|
||||
AudioClassDescription classDesc;
|
||||
|
||||
if (GetHardwareCodecClassDesc(asbd->mFormatID, &classDesc))
|
||||
|
|
|
|||
Loading…
Reference in New Issue