`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.
| 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. |
| 75 | class AudioDeviceRenderCallback |
| 76 | { |
| 77 | AudioStreamConfig outputConfig; |
| 78 | AudioStreamConfig inputConfig; |
| 79 | friend class AudioDevice; |
| 80 | |
| 81 | public: |
| 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 // |
nothing calls this directly
no outgoing calls
no test coverage detected