And a bunch of potential memory leaks, and some misbehavior that could occur due to not checking for errors properly. Signed-off-by: Christopher Snowhill <kode54@gmail.com>
26 lines
473 B
Objective-C
26 lines
473 B
Objective-C
//
|
|
// SpectrumViewSK.h
|
|
// Cog
|
|
//
|
|
// Created by Christopher Snowhill on 2/12/22.
|
|
//
|
|
|
|
#import <Cocoa/Cocoa.h>
|
|
|
|
#import <SceneKit/SceneKit.h>
|
|
|
|
#import <CogAudio/VisualizationController.h>
|
|
|
|
NS_ASSUME_NONNULL_BEGIN
|
|
|
|
@interface SpectrumViewSK : SCNView
|
|
@property(nonatomic) BOOL isListening;
|
|
@property(nonatomic) BOOL isWorking;
|
|
|
|
+ (SpectrumViewSK *_Nullable)createGuardWithFrame:(NSRect)frame;
|
|
|
|
- (void)enableCameraControl;
|
|
- (void)startPlayback;
|
|
@end
|
|
|
|
NS_ASSUME_NONNULL_END
|