mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-04 16:26:53 +00:00
AUDIO: (Amiga) - adapt mutex handling to latest mixer code changes
This commit is contained in:
parent
69d5c5164f
commit
8e0092c5d2
@ -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;
|
||||
|
@ -115,7 +115,7 @@ protected:
|
||||
};
|
||||
|
||||
bool _end;
|
||||
Common::Mutex _mutex;
|
||||
Common::Mutex &_mutex;
|
||||
|
||||
virtual void interrupt() = 0;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user