summaryrefslogtreecommitdiffstats
path: root/src/server/AudioBuffer.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/server/AudioBuffer.hpp')
-rw-r--r--src/server/AudioBuffer.hpp29
1 files changed, 0 insertions, 29 deletions
diff --git a/src/server/AudioBuffer.hpp b/src/server/AudioBuffer.hpp
index b4d023c9..4836b05b 100644
--- a/src/server/AudioBuffer.hpp
+++ b/src/server/AudioBuffer.hpp
@@ -44,7 +44,6 @@ public:
void set_block(Sample val, size_t start_offset, size_t end_offset);
void copy(const Sample* src, size_t start_sample, size_t end_sample);
void copy(Context& context, const Buffer* src);
- void accumulate(Context& context, const AudioBuffer* src);
float peak(Context& context) const;
@@ -80,34 +79,6 @@ private:
FrameTime _set_time; ///< Time _set_value was set (to reset next cycle)
};
-/** Accumulate a block of @a src into buffer.
- */
-inline void
-AudioBuffer::accumulate(Context& context, const AudioBuffer* const src)
-{
- Sample* const buf = data();
- const Sample* const src_buf = src->data();
-
- if (is_control()) {
- if (src->is_control()) { // control => control
- buf[0] += src_buf[0];
- } else { // audio => control
- buf[0] += src_buf[context.offset()];
- }
- } else {
- const SampleCount end = context.offset() + context.nframes();
- if (src->is_control()) { // control => audio
- for (SampleCount i = context.offset(); i < end; ++i) {
- buf[i] += src_buf[0];
- }
- } else { // audio => audio
- for (SampleCount i = context.offset(); i < end; ++i) {
- buf[i] += src_buf[i];
- }
- }
- }
-}
-
} // namespace Server
} // namespace Ingen