From fe6cc016d7928e7a6051e6baa5d6edecbe74a461 Mon Sep 17 00:00:00 2001 From: Paul Ferrand Date: Sun, 26 Jan 2020 11:20:11 +0100 Subject: [PATCH] Updated the doc and c++ api --- src/sfizz.hpp | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/src/sfizz.hpp b/src/sfizz.hpp index 755e4f2b..5437d6a8 100644 --- a/src/sfizz.hpp +++ b/src/sfizz.hpp @@ -152,15 +152,14 @@ public: void tempo(int delay, float secondsPerQuarter) noexcept; /** * @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 block is integrated in the AudioSpan object. You can build an - * AudioSpan implicitely from a large number of source objects; check the - * AudioSpan reference for more precision. + * the synth in its waiting state for the next batch of events. The buffers must + * be float[numSamples][numOutputs * 2]. * - * @param buffer the buffer to write the next block into - * @param numSamples the number of samples + * @param buffers the buffers to write the next block into + * @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