From d1b4dd485be22d5fbae2c6a02f2f1e3d8eda0984 Mon Sep 17 00:00:00 2001 From: Victor Bombi Date: Fri, 4 Dec 2015 09:24:31 +0100 Subject: [PATCH] add Stk::clear_alertList method --- include/Stk.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/include/Stk.h b/include/Stk.h index 0574c42..58c1d61 100644 --- a/include/Stk.h +++ b/include/Stk.h @@ -171,7 +171,10 @@ public: class basis. */ void ignoreSampleRateChange( bool ignore = true ) { ignoreSampleRateChange_ = ignore; }; - + + //! Static method that frees memory from alertList_. + static void clear_alertList(){std::vector().swap(alertList_);}; + //! Static method that returns the current rawwave path. static std::string rawwavePath(void) { return rawwavepath_; }