diff options
| author | Tim Redfern <tim@getdrop.com> | 2018-06-01 20:10:19 +0100 |
|---|---|---|
| committer | Tim Redfern <tim@getdrop.com> | 2018-06-01 20:10:19 +0100 |
| commit | 86475494161cde9a2eddcedb3fe7baa9b48f96d4 (patch) | |
| tree | 4479045fe802c3ab03a9a39b19416376e33ff1c7 /gui/src/AudioPlotter.cpp | |
| parent | fc8eda9fcc058d37f9a8908dc2e2629e3f50588e (diff) | |
good for show
Diffstat (limited to 'gui/src/AudioPlotter.cpp')
| -rw-r--r-- | gui/src/AudioPlotter.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/gui/src/AudioPlotter.cpp b/gui/src/AudioPlotter.cpp index ec53bf4..22eb757 100644 --- a/gui/src/AudioPlotter.cpp +++ b/gui/src/AudioPlotter.cpp @@ -86,6 +86,13 @@ void Audioplotter::addpoints(vector <float> &audio){ data.pop_back(); } } +void Audioplotter::blankframe(){ + vector <colourPolyline> newdata; + data.insert(data.begin(),newdata); + while (data.size()>history_size) { + data.pop_back(); + } +} int Audioplotter::numpoints(){ int num=0; for (auto d=data.begin();d!=data.end();d++){ |
