Skip to content

Commit

Permalink
Fix bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
diizy committed Nov 18, 2014
1 parent 1deb80a commit 1864dcf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 2 additions & 2 deletions include/MemoryManager.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -85,7 +85,7 @@ struct PtrInfo
typedef QVector<MemoryPool> MemoryPoolVector;
typedef QHash<void*, PtrInfo> PointerInfoMap;

class MemoryManager
class EXPORT MemoryManager
{
public:
static bool init();
Expand Down
2 changes: 0 additions & 2 deletions src/core/audio/AudioPort.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 1864dcf

Please sign in to comment.