Update the resampler if the input channels count changes.
This commit is contained in:
1 parent
72cc3001b5
commit
f936b61072
3 files changed
+154
-53
No files matched your search
@@ -39,7 +39,10 @@
|
||||
UInt32 bitRate = [[[NSUserDefaults standardUserDefaults] valueForKey:@"SBAudioBitrate"] integerValue];
|
||||
AudioStreamBasicDescription asbd = [self basicDescriptorForTrack:track];
|
||||
|
||||
_decoder = [[MP42AudioDecoder alloc] initWithAudioFormat:asbd mixdownType:mixdownType magicCookie:magicCookie error:error];
|
||||
_decoder = [[MP42AudioDecoder alloc] initWithAudioFormat:asbd
|
||||
mixdownType:mixdownType
|
||||
drc:1.5
|
||||
magicCookie:magicCookie error:error];
|
||||
|
||||
if (!_decoder) {
|
||||
return nil;
|
||||
|
||||
Reference in new issue
Block a user