37 lines
1.1 KiB
Objective-C
37 lines
1.1 KiB
Objective-C
//
|
|
// MP42AudioDecoder.h
|
|
// MP42Foundation
|
|
//
|
|
// Created by Damiano Galassi on 23/07/2016.
|
|
// Copyright © 2016 Damiano Galassi. All rights reserved.
|
|
//
|
|
|
|
#import <Foundation/Foundation.h>
|
|
|
|
#import "MP42AudioUnit.h"
|
|
|
|
@class MP42SampleBuffer;
|
|
@class MP42AudioTrack;
|
|
|
|
NS_ASSUME_NONNULL_BEGIN
|
|
|
|
@interface MP42AudioDecoder : NSObject<MP42AudioUnit>
|
|
|
|
- (instancetype)initWithAudioFormat:(AudioStreamBasicDescription)asbd
|
|
mixdownType:(NSString *)mixdownType
|
|
drc:(float)drc
|
|
magicCookie:(NSData *)magicCookie
|
|
error:(NSError **)error;
|
|
|
|
@property (nonatomic, readonly, nullable) AudioChannelLayout *inputLayout;
|
|
@property (nonatomic, readonly) UInt32 inputLayoutSize;
|
|
@property (nonatomic, readonly) AudioStreamBasicDescription inputFormat;
|
|
|
|
@property (nonatomic, readonly, nullable) AudioChannelLayout *outputLayout;
|
|
@property (nonatomic, readonly) UInt32 outputLayoutSize;
|
|
@property (nonatomic, readonly) AudioStreamBasicDescription outputFormat;
|
|
|
|
@end
|
|
|
|
NS_ASSUME_NONNULL_END
|