Added the MP42ComponentLoader, it will be used to load core audio components from inside the application bundle.

This commit is contained in:
Damiano Galassi committed 2014-07-24 19:04:44 +02:00
1 parent dc227c8fbc
commit adc294be53
4 files changed
+256

No files matched your search

+5
View File
@@ -14,6 +14,8 @@
#import "MP42Fifo.h"
#import "MP42PrivateUtilities.h"
#import "MP42ComponentLoader.h"
#import "MP42Track+Muxer.h"
#define FIFO_DURATION (0.5f)
@@ -592,6 +594,9 @@ OSStatus DecoderDataProc(AudioConverterRef inAudioConverter,
if ((self = [super init])) {
OSStatus err;
// Load the decoders
[[MP42ComponentLoader sharedLoader] loadBundledComponents];
// Set the right mixdown to use
sampleRate = [track.muxer_helper->importer timescaleForTrack:track];
inputChannelsCount = [track sourceChannels];