Use proper audio format (with channel layout) when creating pcm player inputs

This commit is contained in:
Zakk 2020-04-18 07:25:45 -04:00
parent a0efc75baa
commit d36a6a445d
2 changed files with 1 additions and 3 deletions

View file

@ -351,7 +351,6 @@
NSArray *pcmSamples = frameData.pcmAudioSamples[audioTrackkey];
for (id object in pcmSamples)
{
CMSampleBufferRef sampleBuffer = (__bridge CMSampleBufferRef)object;
CSPcmPlayer *pcmPlayer = _pcmPlayers[audioTrackkey];
if (!pcmPlayer)

View file

@ -575,8 +575,7 @@
if (useEngine)
{
NSLog(@"ENGINE %@", useEngine);
player = [useEngine createPCMInput:forUID withFormat:withFormat];
player = [useEngine createPCMInput:forUID withFormat:useFormat];
}
if (player)