From 1864dcfaa1260e2659c85d1fb63cb2d428e9f1ab Mon Sep 17 00:00:00 2001 From: Vesa Date: Fri, 29 Aug 2014 20:24:24 +0300 Subject: [PATCH] Fix bugs --- include/MemoryManager.h | 4 ++-- src/core/audio/AudioPort.cpp | 2 -- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/include/MemoryManager.h b/include/MemoryManager.h index 300b25a34..44ef58c60 100644 --- a/include/MemoryManager.h +++ b/include/MemoryManager.h @@ -31,7 +31,7 @@ #include #include #include "MemoryHelper.h" - +#include "export.h" const int MM_CHUNK_SIZE = 64; // granularity of managed memory const int MM_INITIAL_CHUNKS = 1024 * 1024; // how many chunks to allocate at startup - TODO: make configurable @@ -85,7 +85,7 @@ struct PtrInfo typedef QVector MemoryPoolVector; typedef QHash PointerInfoMap; -class MemoryManager +class EXPORT MemoryManager { public: static bool init(); diff --git a/src/core/audio/AudioPort.cpp b/src/core/audio/AudioPort.cpp index 85d99c910..1fecc8d9e 100644 --- a/src/core/audio/AudioPort.cpp +++ b/src/core/audio/AudioPort.cpp @@ -104,8 +104,6 @@ void AudioPort::doProcessing() { const fpp_t fpp = engine::mixer()->framesPerPeriod(); - if( m_playHandles.isEmpty() ) return; // skip processing if no playhandles are connected - m_portBuffer = BufferManager::acquire(); // get buffer for processing engine::mixer()->clearAudioBuffer( m_portBuffer, fpp ); // clear the audioport buffer so we can use it