Some work on encoding PCM audio.
This commit is contained in:
1 parent
acf14c20f5
commit
c9b59d96f0
5 files changed
+239
-33
No files matched your search
@@ -37,8 +37,13 @@
|
||||
if (self) {
|
||||
NSData *magicCookie = [track.muxer_helper->importer magicCookieForTrack:track];
|
||||
AudioStreamBasicDescription asbd = [self basicDescriptorForTrack:track];
|
||||
UInt32 channelLayoutSize = sizeof(AudioChannelLayout);
|
||||
AudioChannelLayout *channelLayout = calloc(channelLayoutSize, 1);
|
||||
channelLayout->mChannelLayoutTag = track.channelLayoutTag;
|
||||
|
||||
_decoder = [[MP42AudioDecoder alloc] initWithAudioFormat:asbd
|
||||
channelLayout:channelLayout
|
||||
channelLayoutSize:channelLayoutSize
|
||||
mixdownType:settings.mixDown
|
||||
drc:settings.drc
|
||||
magicCookie:magicCookie error:error];
|
||||
|
||||
Reference in new issue
Block a user