Update the resampler if the input channels count changes.

This commit is contained in:
Damiano Galassi committed 2016-07-27 11:17:13 +02:00
1 parent 72cc3001b5
commit f936b61072
3 files changed
+154 -53

No files matched your search

+4 -1
View File
@@ -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;