summaryrefslogtreecommitdiff
path: root/servers/audio_server.h
diff options
context:
space:
mode:
authorSaracen <SaracenOne@gmail.com>2019-10-11 23:40:43 +0100
committerSaracen <SaracenOne@gmail.com>2019-10-11 23:40:43 +0100
commitdabaa11b3c451e9b8f2cca7e563bd9ec51edb169 (patch)
tree550610e63ab2f31f1d21646689e6daea66de69a4 /servers/audio_server.h
parent3cc94b2c0b90ec1136937e2c02b9d7901d3d28b8 (diff)
Fix to make sure the capture buffers are deallocated at shutdown. Silences warnings.
Diffstat (limited to 'servers/audio_server.h')
-rw-r--r--servers/audio_server.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/servers/audio_server.h b/servers/audio_server.h
index 72bb6faf42..da4b9daf5b 100644
--- a/servers/audio_server.h
+++ b/servers/audio_server.h
@@ -115,6 +115,8 @@ public:
unsigned int get_capture_position() { return capture_position; }
unsigned int get_capture_size() { return capture_size; }
+ void clear_capture_buffer() { capture_buffer.resize(0); }
+
#ifdef DEBUG_ENABLED
uint64_t get_profiling_time() const { return prof_time; }
void reset_profiling_time() { prof_time = 0; }