This commit is contained in:
Vesa
2014-08-29 20:24:24 +03:00
parent 1deb80acc3
commit 1864dcfaa1
2 changed files with 2 additions and 4 deletions

View File

@@ -31,7 +31,7 @@
#include <QtCore/QReadWriteLock>
#include <QtCore/QHash>
#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<MemoryPool> MemoryPoolVector;
typedef QHash<void*, PtrInfo> PointerInfoMap;
class MemoryManager
class EXPORT MemoryManager
{
public:
static bool init();

View File

@@ -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