From a359d234ff53bcdab671faa169f45c4f14f5575d Mon Sep 17 00:00:00 2001 From: Bent Bisballe Nyeng Date: Sat, 2 Sep 2017 13:13:30 +0200 Subject: Make sure instrument channels are not reallocated on list growth. --- src/instrument.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/instrument.h b/src/instrument.h index 4076b48..0441ed4 100644 --- a/src/instrument.h +++ b/src/instrument.h @@ -29,6 +29,7 @@ #include #include #include +#include #include "rangemap.h" #include "powerlist.h" @@ -79,7 +80,7 @@ private: void finalise(); ///< Signal instrument that no more samples will be added. std::vector samplelist; - std::vector instrument_channels; + std::deque instrument_channels; size_t lastpos; float mod; -- cgit v1.2.3