Cog/Audio/Visualization/VisualizationController.h
Christopher Snowhill 417687600b Implement visualization support and a spectrum
Borrowing some DFT code from deadbeef, this implements a simple spectrum
visualization into the main toolbar of the app.

Signed-off-by: Christopher Snowhill <kode54@gmail.com>
2022-02-12 23:04:03 -08:00

23 lines
421 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 {
float visAudio[512];
}
+ (VisualizationController *)sharedController;
- (void)postVisPCM:(const float *)inPCM;
- (void)copyVisPCM:(float *)outPCM visFFT:(float *)outFFT;
@end
NS_ASSUME_NONNULL_END