Set the right channels number and layout in the encoder.
This commit is contained in:
1 parent
1b0316237c
commit
ffe8abd0b6
8 files changed
+248
-73
No files matched your search
@@ -11,6 +11,8 @@
|
||||
|
||||
#import "MP42ConverterProtocol.h"
|
||||
|
||||
NS_ASSUME_NONNULL_BEGIN
|
||||
|
||||
typedef NS_ENUM(NSUInteger, MP42AudioUnitOutput) {
|
||||
MP42AudioUnitOutputPush,
|
||||
MP42AudioUnitOutputPull,
|
||||
@@ -18,10 +20,19 @@ typedef NS_ENUM(NSUInteger, MP42AudioUnitOutput) {
|
||||
|
||||
@protocol MP42AudioUnit <MP42ConverterProtocol>
|
||||
|
||||
- (void)reconfigure;
|
||||
|
||||
@property (nonatomic, readwrite) MP42AudioUnitOutput outputType;
|
||||
@property (nonatomic, readwrite, unsafe_unretained) id<MP42ConverterProtocol> outputUnit;
|
||||
|
||||
@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
|
||||
Reference in new issue
Block a user