Updated the doc and c++ api

This commit is contained in:
Paul Ferrand 2020-01-26 11:20:11 +01:00
parent a548cd5f2a
commit fe6cc016d7

View file

@ -152,15 +152,14 @@ public:
void tempo(int delay, float secondsPerQuarter) noexcept; void tempo(int delay, float secondsPerQuarter) noexcept;
/** /**
* @brief Render an block of audio data in the buffer. This call will reset * @brief Render an block of audio data in the buffer. This call will reset
* the synth in its waiting state for the next batch of events. The size of * the synth in its waiting state for the next batch of events. The buffers must
* the block is integrated in the AudioSpan object. You can build an * be float[numSamples][numOutputs * 2].
* AudioSpan implicitely from a large number of source objects; check the
* AudioSpan reference for more precision.
* *
* @param buffer the buffer to write the next block into * @param buffers the buffers to write the next block into
* @param numSamples the number of samples * @param numSamples the number of stereo frames in the block
* @param numOutputs the number of stereo outputs
*/ */
void renderBlock(float** buffers, size_t numSamples, int numOutputs) noexcept; void renderBlock(float** buffers, size_t numFrames, int numOutputs = 1) noexcept;
/** /**
* @brief Get the number of active voices * @brief Get the number of active voices