Rewrite attempt number two. Now using array lists of audio chunks, with each chunk having its format and optionally losslessness stashed along with it. This replaces the old virtual ring buffer method. As a result of this, the HRIR toggle now works instantaneously. Signed-off-by: Christopher Snowhill <kode54@gmail.com>
26 lines
609 B
Objective-C
26 lines
609 B
Objective-C
//
|
|
// Downmix.h
|
|
// Cog
|
|
//
|
|
// Created by Christopher Snowhill on 2/05/22.
|
|
// Copyright 2022 __LoSnoCo__. All rights reserved.
|
|
//
|
|
|
|
#import <Foundation/Foundation.h>
|
|
#import <CoreAudio/CoreAudio.h>
|
|
|
|
#import "HeadphoneFilter.h"
|
|
|
|
@interface DownmixProcessor : NSObject {
|
|
HeadphoneFilter *hFilter;
|
|
|
|
AudioStreamBasicDescription inputFormat;
|
|
AudioStreamBasicDescription outputFormat;
|
|
}
|
|
|
|
- (id) initWithInputFormat:(AudioStreamBasicDescription)inf andOutputFormat:(AudioStreamBasicDescription)outf;
|
|
|
|
- (void) process:(const void*)inBuffer frameCount:(size_t)frames output:(void *)outBuffer;
|
|
|
|
@end
|
|
|