2022-02-06 11:08:34 +00:00
|
|
|
//
|
|
|
|
// Downmix.h
|
|
|
|
// Cog
|
|
|
|
//
|
|
|
|
// Created by Christopher Snowhill on 2/05/22.
|
|
|
|
// Copyright 2022 __LoSnoCo__. All rights reserved.
|
|
|
|
//
|
|
|
|
|
|
|
|
#import <CoreAudio/CoreAudio.h>
|
2022-02-07 05:49:27 +00:00
|
|
|
#import <Foundation/Foundation.h>
|
2022-02-06 11:08:34 +00:00
|
|
|
|
|
|
|
@interface DownmixProcessor : NSObject {
|
2022-02-07 05:49:27 +00:00
|
|
|
AudioStreamBasicDescription inputFormat;
|
|
|
|
AudioStreamBasicDescription outputFormat;
|
2022-02-07 08:56:05 +00:00
|
|
|
|
|
|
|
uint32_t inConfig;
|
|
|
|
uint32_t outConfig;
|
2022-02-06 11:08:34 +00:00
|
|
|
}
|
|
|
|
|
2022-02-07 08:56:05 +00:00
|
|
|
- (id)initWithInputFormat:(AudioStreamBasicDescription)inf inputConfig:(uint32_t)iConfig andOutputFormat:(AudioStreamBasicDescription)outf outputConfig:(uint32_t)oConfig;
|
2022-02-06 11:08:34 +00:00
|
|
|
|
2022-02-07 05:49:27 +00:00
|
|
|
- (void)process:(const void *)inBuffer frameCount:(size_t)frames output:(void *)outBuffer;
|
2022-02-06 11:08:34 +00:00
|
|
|
|
|
|
|
@end
|