mirror of
https://github.com/libretro/scummvm.git
synced 2025-05-13 09:36:21 +00:00
VOYEUR: Remove useless VoyeurEngine pointer in SoundManager
This commit is contained in:
parent
c72927bb86
commit
2dac5b76b0
@ -28,7 +28,7 @@
|
||||
|
||||
namespace Voyeur {
|
||||
|
||||
SoundManager::SoundManager(VoyeurEngine *vm, Audio::Mixer *mixer) : _vm(vm) {
|
||||
SoundManager::SoundManager(Audio::Mixer *mixer) {
|
||||
_mixer = mixer;
|
||||
_vocOffset = 0;
|
||||
}
|
||||
|
@ -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();
|
||||
|
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user