summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBent Bisballe Nyeng <deva@aasimon.org>2017-09-02 13:13:30 +0200
committerBent Bisballe Nyeng <deva@aasimon.org>2017-09-03 08:42:23 +0200
commita359d234ff53bcdab671faa169f45c4f14f5575d (patch)
tree0a8db9176bb77b2ba214f3373f7418eb8c6e1a56 /src
parente37c5f5048bb440140dc56ce773d105fc2129385 (diff)
Make sure instrument channels are not reallocated on list growth.
Diffstat (limited to 'src')
-rw-r--r--src/instrument.h3
1 files changed, 2 insertions, 1 deletions
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 <string>
#include <vector>
#include <memory>
+#include <deque>
#include "rangemap.h"
#include "powerlist.h"
@@ -79,7 +80,7 @@ private:
void finalise(); ///< Signal instrument that no more samples will be added.
std::vector<Sample*> samplelist;
- std::vector<InstrumentChannel> instrument_channels;
+ std::deque<InstrumentChannel> instrument_channels;
size_t lastpos;
float mod;