VOYEUR: Remove useless VoyeurEngine pointer in SoundManager

This commit is contained in:
Strangerke 2014-03-09 19:33:28 +01:00
parent c72927bb86
commit 2dac5b76b0
3 changed files with 3 additions and 4 deletions

View File

@ -28,7 +28,7 @@
namespace Voyeur {
SoundManager::SoundManager(VoyeurEngine *vm, Audio::Mixer *mixer) : _vm(vm) {
SoundManager::SoundManager(Audio::Mixer *mixer) {
_mixer = mixer;
_vocOffset = 0;
}

View File

@ -33,12 +33,11 @@ namespace Voyeur {
class SoundManager {
private:
VoyeurEngine *_vm;
Audio::Mixer *_mixer;
Audio::SoundHandle _soundHandle;
int _vocOffset;
public:
SoundManager(VoyeurEngine *vm, Audio::Mixer *mixer);
SoundManager(Audio::Mixer *mixer);
void playVOCMap(byte *voc, int vocSize);
void stopVOCPlay();

View File

@ -71,7 +71,7 @@ VoyeurEngine::VoyeurEngine(OSystem *syst, const VoyeurGameDescription *gameDesc)
_eventsManager = new EventsManager(this);
_filesManager = new FilesManager(this);
_graphicsManager = new GraphicsManager(this);
_soundManager = new SoundManager(this, _mixer);
_soundManager = new SoundManager(_mixer);
_voy = new SVoy(this);
}