clap

CLAP Audio Plugin API
Log | Files | Refs | README | LICENSE

commit a2c50bf7b754874a2a4e7dc1f099550af9fa5ea7
parent 83ad67086cb43e7ff4dbff94551a8096a9f019b9
Author: Alexandre BIQUE <bique.alexandre@gmail.com>
Date:   Sun, 22 May 2022 10:58:45 +0200

The constant mask was already described above

Diffstat:
Minclude/clap/audio-buffer.h | 6+++---
1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/include/clap/audio-buffer.h b/include/clap/audio-buffer.h @@ -12,8 +12,8 @@ extern "C" { // bool isRightConstant = (buffer->constant_mask & (1 << 1)) != 0; // // for (int i = 0; i < N; ++i) { -// float l = data32[0][i * isLeftConstant]; -// float r = data32[1][i * isRightConstant]; +// float l = data32[0][isLeftConstant ? 0 : i]; +// float r = data32[1][isRightConstant ? 0 : i]; // } // // Note: checking the constant mask is optional, and this implies that @@ -29,7 +29,7 @@ typedef struct clap_audio_buffer { double **data64; uint32_t channel_count; uint32_t latency; // latency from/to the audio interface - uint64_t constant_mask; // mask & (1 << N) to test if channel N is constant + uint64_t constant_mask; } clap_audio_buffer_t; #ifdef __cplusplus