Initialize BufferManager from within Mixer

Avoid crashes caused by worker threads accessing the buffer manager
before it is initialized. Therefore initialize it from within the
Mixer constructor which has the side effect that it gets initialized
in console-only rendering mode as well.
This commit is contained in:
Tobias Doerffel
2014-09-02 23:25:05 +02:00
committed by Vesa
parent 7bc97f5d5b
commit 68b5a21d14
4 changed files with 8 additions and 8 deletions

View File

@@ -40,7 +40,7 @@ const int BM_INITIAL_BUFFERS = 512;
class EXPORT BufferManager
{
public:
static void init();
static void init( fpp_t framesPerPeriod );
static sampleFrame * acquire();
static void release( sampleFrame * buf );
static void refresh();