mirror of
https://github.com/zakk4223/CocoaSplit.git
synced 2026-05-15 14:15:50 -06:00
Use proper audio format (with channel layout) when creating pcm player inputs
This commit is contained in:
parent
a0efc75baa
commit
d36a6a445d
2 changed files with 1 additions and 3 deletions
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -575,8 +575,7 @@
|
|||
if (useEngine)
|
||||
{
|
||||
|
||||
NSLog(@"ENGINE %@", useEngine);
|
||||
player = [useEngine createPCMInput:forUID withFormat:withFormat];
|
||||
player = [useEngine createPCMInput:forUID withFormat:useFormat];
|
||||
}
|
||||
|
||||
if (player)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue