The Visualization Manager PCM/FFT copy function was already observing these parameters for null input and only returning output to the ones which were not null. This just makes it clear that they are both optional parameters. This is useful for future visualization adventures, allowing PCM copy without invoking the FFT processing, or requesting FFT without also having to keep the PCM. This is mostly only a compile time change, and has no noticeable effect on the current runtime behavior, as the only consumers of the Visualizer data currently request both PCM and FFT. Signed-off-by: Christopher Snowhill <kode54@gmail.com>
30 lines
615 B
Objective-C
30 lines
615 B
Objective-C
//
|
|
// VisualizationController.h
|
|
// CogAudio Framework
|
|
//
|
|
// Created by Christopher Snowhill on 2/12/22.
|
|
//
|
|
|
|
#import <Foundation/Foundation.h>
|
|
|
|
NS_ASSUME_NONNULL_BEGIN
|
|
|
|
@interface VisualizationController : NSObject {
|
|
}
|
|
|
|
+ (VisualizationController *)sharedController;
|
|
|
|
- (void)postLatency:(double)latency;
|
|
|
|
- (UInt64)samplesPosted;
|
|
|
|
- (void)postSampleRate:(double)sampleRate;
|
|
- (void)postVisPCM:(const float *)inPCM amount:(int)amount;
|
|
- (double)readSampleRate;
|
|
- (void)copyVisPCM:(float *_Nullable)outPCM visFFT:(float *_Nullable)outFFT latencyOffset:(double)latency;
|
|
|
|
- (void)reset;
|
|
|
|
@end
|
|
|
|
NS_ASSUME_NONNULL_END
|