2022-07-10 22:16:48 +00:00
|
|
|
//
|
|
|
|
// FSurroundFilter.h
|
|
|
|
// CogAudio
|
|
|
|
//
|
|
|
|
// Created by Christopher Snowhill on 7/9/22.
|
|
|
|
//
|
|
|
|
|
|
|
|
#ifndef FSurroundFilter_h
|
|
|
|
#define FSurroundFilter_h
|
|
|
|
|
|
|
|
#import <Cocoa/Cocoa.h>
|
|
|
|
|
|
|
|
#import <stdint.h>
|
|
|
|
|
|
|
|
#define FSurroundChunkSize 4096
|
|
|
|
|
|
|
|
@interface FSurroundFilter : NSObject {
|
|
|
|
void *decoder;
|
|
|
|
void *params;
|
|
|
|
double srate;
|
|
|
|
uint32_t channelCount;
|
|
|
|
uint32_t channelConfig;
|
2022-07-25 01:31:08 +00:00
|
|
|
float tempBuffer[4096 * 2];
|
2022-07-10 22:16:48 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
- (id)initWithSampleRate:(double)srate;
|
|
|
|
|
|
|
|
- (uint32_t)channelCount;
|
|
|
|
- (uint32_t)channelConfig;
|
2022-07-15 10:34:10 +00:00
|
|
|
- (double)srate;
|
2022-07-10 22:16:48 +00:00
|
|
|
|
|
|
|
- (void)process:(const float *)samplesIn output:(float *)samplesOut count:(uint32_t)count;
|
|
|
|
|
|
|
|
@end
|
|
|
|
|
|
|
|
#endif /* FSurround_h */
|