Fix bugs
This commit is contained in:
@@ -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();
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user