aboutsummaryrefslogtreecommitdiff
path: root/sword1/music.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'sword1/music.cpp')
-rw-r--r--sword1/music.cpp6
1 files changed, 1 insertions, 5 deletions
diff --git a/sword1/music.cpp b/sword1/music.cpp
index 99166ed2e6..34ef5b48c9 100644
--- a/sword1/music.cpp
+++ b/sword1/music.cpp
@@ -251,11 +251,9 @@ void MusicHandle::stop() {
_looping = false;
}
-Music::Music(OSystem *system, SoundMixer *pMixer) {
- _system = system;
+Music::Music(SoundMixer *pMixer) {
_mixer = pMixer;
_sampleRate = pMixer->getOutputRate();
- _mutex = _system->createMutex();
_converter[0] = NULL;
_converter[1] = NULL;
_volumeL = _volumeR = 192;
@@ -266,8 +264,6 @@ Music::~Music() {
_mixer->setupPremix(0);
delete _converter[0];
delete _converter[1];
- if (_mutex)
- _system->deleteMutex(_mutex);
}
void Music::mixer(int16 *buf, uint32 len) {