2022-02-13 07:04:03 +00:00
|
|
|
//
|
|
|
|
// VisualizationController.h
|
|
|
|
// CogAudio Framework
|
|
|
|
//
|
|
|
|
// Created by Christopher Snowhill on 2/12/22.
|
|
|
|
//
|
|
|
|
|
|
|
|
#import <Foundation/Foundation.h>
|
|
|
|
|
|
|
|
NS_ASSUME_NONNULL_BEGIN
|
|
|
|
|
|
|
|
@interface VisualizationController : NSObject {
|
2022-02-13 20:15:27 +00:00
|
|
|
double sampleRate;
|
2022-02-16 07:22:47 +00:00
|
|
|
float visAudio[4096];
|
2022-02-13 07:04:03 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
+ (VisualizationController *)sharedController;
|
|
|
|
|
2022-02-13 20:15:27 +00:00
|
|
|
- (void)postSampleRate:(double)sampleRate;
|
2022-02-17 05:54:55 +00:00
|
|
|
- (void)postVisPCM:(const float *)inPCM amount:(int)amount;
|
2022-02-13 20:15:27 +00:00
|
|
|
- (double)readSampleRate;
|
2022-02-13 07:04:03 +00:00
|
|
|
- (void)copyVisPCM:(float *)outPCM visFFT:(float *)outFFT;
|
|
|
|
|
|
|
|
@end
|
|
|
|
|
|
|
|
NS_ASSUME_NONNULL_END
|