Audacity 3.2.0
AudioGraphTask.h
Go to the documentation of this file.
1/**********************************************************************
2
3 Audacity: A Digital Audio Editor
4
5 @file AudioGraphTask.h
6
7 Dominic Mazzoni
8 Vaughan Johnson
9
10 Paul Licameli split from PerTrackEffect.h
11
12**********************************************************************/
13
14#ifndef __AUDACITY_AUDIO_GRAPH_TASK__
15#define __AUDACITY_AUDIO_GRAPH_TASK__
16
17namespace AudioGraph {
18
19class Buffers;
20class Sink;
21class Source;
22
24struct AUDIO_GRAPH_API Task {
25public:
31 Task(Source &source, Buffers &buffers, Sink &sink);
32 enum class Status { More, Done, Fail };
34 Status RunOnce();
36
42 bool RunLoop();
43private:
47
48#ifndef NDEBUG
49 bool mRanOnce{ false };
50#endif
51};
52
53}
54#endif
Accumulates (non-interleaved) data during effect processing.
Downstream receiver of sample streams, taking Buffers as external context.
Upstream producer of sample streams, taking Buffers as external context.
Copies from a Source to a Sink, mediated by Buffers.
Buffers & mBuffers