Visualization now buffers in the audio output pipeline, and uses a container system to delay multiple buffer chains from emitting visualization data over top of each other. This should stabilize display output significantly, while introducing minimal lag before DSP configuration changes take effect. Signed-off-by: Christopher Snowhill <kode54@gmail.com>
34 lines
529 B
Objective-C
34 lines
529 B
Objective-C
//
|
|
// VisualizationNode.h
|
|
// CogAudio
|
|
//
|
|
// Created by Christopher Snowhill on 2/12/25.
|
|
//
|
|
|
|
#ifndef VisualizationNode_h
|
|
#define VisualizationNode_h
|
|
|
|
#import "Node.h"
|
|
|
|
@interface VisualizationNode : Node {
|
|
}
|
|
|
|
- (id _Nullable)initWithController:(id _Nonnull)c previous:(id _Nullable)p latency:(double)latency;
|
|
|
|
- (void)threadEntry:(id _Nullable)arg;
|
|
|
|
- (BOOL)setup;
|
|
- (void)cleanUp;
|
|
|
|
- (void)resetBuffer;
|
|
|
|
- (void)pop;
|
|
- (void)replayPreroll;
|
|
|
|
- (void)process;
|
|
|
|
- (double)secondsBuffered;
|
|
|
|
@end
|
|
|
|
#endif /* VisualizationNode_h */
|