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-06-24 06:17:31 +00:00
|
|
|
double latency;
|
|
|
|
float *visAudio;
|
|
|
|
int visAudioCursor, visAudioSize;
|
2022-02-13 07:04:03 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
+ (VisualizationController *)sharedController;
|
|
|
|
|
2022-06-24 06:17:31 +00:00
|
|
|
- (void)postLatency:(double)latency;
|
|
|
|
|
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-06-26 12:36:20 +00:00
|
|
|
- (void)copyVisPCM:(float *)outPCM visFFT:(float *)outFFT latencyOffset:(double)latency;
|
2022-02-13 07:04:03 +00:00
|
|
|
|
|
|
|
@end
|
|
|
|
|
|
|
|
NS_ASSUME_NONNULL_END
|