AUDIO: (Amiga) - adapt mutex handling to latest mixer code changes

This commit is contained in:
athrxx 2021-07-01 22:01:17 +02:00
parent 69d5c5164f
commit 8e0092c5d2
2 changed files with 3 additions and 2 deletions

View File

@ -35,13 +35,14 @@
#include "common/scummsys.h"
#include "audio/mixer.h"
#include "audio/mods/paula.h"
#include "audio/null.h"
namespace Audio {
Paula::Paula(bool stereo, int rate, uint interruptFreq, FilterMode filterMode, int periodScaleDivisor) :
_stereo(stereo), _rate(rate), _periodScale((double)kPalPaulaClock / (rate * periodScaleDivisor)), _intFreq(interruptFreq) {
_stereo(stereo), _rate(rate), _periodScale((double)kPalPaulaClock / (rate * periodScaleDivisor)), _intFreq(interruptFreq), _mutex(g_system->getMixer()->mutex()) {
_filterState.mode = filterMode;
_filterState.ledFilter = false;

View File

@ -115,7 +115,7 @@ protected:
};
bool _end;
Common::Mutex _mutex;
Common::Mutex &_mutex;
virtual void interrupt() = 0;