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]; NSArray *pcmSamples = frameData.pcmAudioSamples[audioTrackkey];
for (id object in pcmSamples) for (id object in pcmSamples)
{ {
CMSampleBufferRef sampleBuffer = (__bridge CMSampleBufferRef)object; CMSampleBufferRef sampleBuffer = (__bridge CMSampleBufferRef)object;
CSPcmPlayer *pcmPlayer = _pcmPlayers[audioTrackkey]; CSPcmPlayer *pcmPlayer = _pcmPlayers[audioTrackkey];
if (!pcmPlayer) if (!pcmPlayer)

View file

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