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>
22 lines
335 B
Objective-C
22 lines
335 B
Objective-C
//
|
|
// SpectrumView.h
|
|
// Cog
|
|
//
|
|
// Created by Christopher Snowhill on 2/12/22.
|
|
//
|
|
|
|
#import <Cocoa/Cocoa.h>
|
|
|
|
#import "VisualizationController.h"
|
|
|
|
NS_ASSUME_NONNULL_BEGIN
|
|
|
|
@interface SpectrumView : NSImageView {
|
|
VisualizationController *visController;
|
|
NSTimer *timer;
|
|
NSImage *theImage;
|
|
BOOL stopped;
|
|
}
|
|
@end
|
|
|
|
NS_ASSUME_NONNULL_END
|