2022-02-13 04:04:03 -03: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 17:15:27 -03:00
|
|
|
double sampleRate;
|
2022-06-24 02:17:31 -04:00
|
|
|
double latency;
|
|
|
|
float *visAudio;
|
|
|
|
int visAudioCursor, visAudioSize;
|
2022-07-24 21:31:08 -04:00
|
|
|
float *visAudioTemp;
|
2024-09-21 02:12:50 -03:00
|
|
|
uint64_t visSamplesPosted;
|
2022-02-13 04:04:03 -03:00
|
|
|
}
|
|
|
|
|
|
|
|
+ (VisualizationController *)sharedController;
|
|
|
|
|
2022-06-24 02:17:31 -04:00
|
|
|
- (void)postLatency:(double)latency;
|
|
|
|
|
2024-09-21 02:12:50 -03:00
|
|
|
- (UInt64)samplesPosted;
|
|
|
|
|
2022-02-13 17:15:27 -03:00
|
|
|
- (void)postSampleRate:(double)sampleRate;
|
2022-02-17 02:54:55 -03:00
|
|
|
- (void)postVisPCM:(const float *)inPCM amount:(int)amount;
|
2022-02-13 17:15:27 -03:00
|
|
|
- (double)readSampleRate;
|
2022-06-26 08:36:20 -04:00
|
|
|
- (void)copyVisPCM:(float *)outPCM visFFT:(float *)outFFT latencyOffset:(double)latency;
|
2022-02-13 04:04:03 -03:00
|
|
|
|
|
|
|
@end
|
|
|
|
|
|
|
|
NS_ASSUME_NONNULL_END
|