MCPcopy Create free account
hub / github.com/LabSound/LabSound / AudioDeviceRenderCallback

Class AudioDeviceRenderCallback

include/LabSound/core/AudioDevice.h:75–91  ·  view source on GitHub ↗

`render()` is called periodically to get the next render quantum of audio into destinationBus. Optional audio input is given in src (if not nullptr). This structure also keeps track of timing information with respect to the callback.

Source from the content-addressed store, hash-verified

73// Optional audio input is given in src (if not nullptr). This structure also keeps
74// track of timing information with respect to the callback.
75class AudioDeviceRenderCallback
76{
77 AudioStreamConfig outputConfig;
78 AudioStreamConfig inputConfig;
79 friend class AudioDevice;
80
81public:
82 virtual ~AudioDeviceRenderCallback() {}
83 virtual void render(AudioBus * src, AudioBus * dst, int frames, const SamplingInfo & info) = 0;
84 virtual void start() = 0;
85 virtual void stop() = 0;
86 virtual bool isRunning() const = 0;
87
88 virtual const SamplingInfo & getSamplingInfo() const = 0;
89 virtual const AudioStreamConfig & getOutputConfig() const = 0;
90 virtual const AudioStreamConfig & getInputConfig() const = 0;
91};
92
93/////////////////////
94// AudioDevice //

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected