Add a dedicated spectrum visualization window, and add the necessary hooks to start its event timer if playback is already running when it is first opened. Signed-off-by: Christopher Snowhill <kode54@gmail.com>
23 lines
357 B
Objective-C
23 lines
357 B
Objective-C
//
|
|
// SpectrumView.h
|
|
// Cog
|
|
//
|
|
// Created by Christopher Snowhill on 2/12/22.
|
|
//
|
|
|
|
#import <Cocoa/Cocoa.h>
|
|
|
|
#import <SceneKit/SceneKit.h>
|
|
|
|
#import "VisualizationController.h"
|
|
|
|
NS_ASSUME_NONNULL_BEGIN
|
|
|
|
@interface SpectrumView : SCNView
|
|
@property(nonatomic) BOOL isListening;
|
|
|
|
- (void)enableCameraControl;
|
|
- (void)startPlayback;
|
|
@end
|
|
|
|
NS_ASSUME_NONNULL_END
|