diff options
Diffstat (limited to 'src/server/Buffer.cpp')
-rw-r--r-- | src/server/Buffer.cpp | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/server/Buffer.cpp b/src/server/Buffer.cpp index cf313b67..8ed1d60a 100644 --- a/src/server/Buffer.cpp +++ b/src/server/Buffer.cpp @@ -431,6 +431,22 @@ Buffer::update_value_buffer(SampleCount offset) } } +#ifndef NDEBUG +void +Buffer::dump_cv(const RunContext& context) const +{ + float value = samples()[0]; + fprintf(stderr, "{ 0000: %.02f\n", value); + for (uint32_t i = 0; i < context.nframes(); ++i) { + if (samples()[i] != value) { + value = samples()[i]; + fprintf(stderr, " %4d: %.02f\n", i, value); + } + } + fprintf(stderr, "}\n"); +} +#endif + void intrusive_ptr_add_ref(Buffer* b) { |