From 293926a1dd4c8cb5e84ab1d22f3026147fd5d6b1 Mon Sep 17 00:00:00 2001 From: Javier Serrano Polo Date: Mon, 23 May 2016 21:41:29 +0200 Subject: [PATCH] Do not delete pool buffers in dummy audio --- include/AudioDummy.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/include/AudioDummy.h b/include/AudioDummy.h index 993dbccae..1b5a554f8 100644 --- a/include/AudioDummy.h +++ b/include/AudioDummy.h @@ -101,7 +101,10 @@ private: { break; } - delete[] b; + if( mixer()->hasFifoWriter() ) + { + delete[] b; + } const int microseconds = static_cast( mixer()->framesPerPeriod() * 1000000.0f / mixer()->processingSampleRate() - timer.elapsed() ); if( microseconds > 0 )