ScummVM API documentation
music_room.h
1 /* ScummVM - Graphic Adventure Engine
2  *
3  * ScummVM is the legal property of its developers, whose names
4  * are too numerous to list here. Please refer to the COPYRIGHT
5  * file distributed with this source distribution.
6  *
7  * This program is free software: you can redistribute it and/or modify
8  * it under the terms of the GNU General Public License as published by
9  * the Free Software Foundation, either version 3 of the License, or
10  * (at your option) any later version.
11  *
12  * This program is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15  * GNU General Public License for more details.
16  *
17  * You should have received a copy of the GNU General Public License
18  * along with this program. If not, see <http://www.gnu.org/licenses/>.
19  *
20  */
21 
22 #ifndef TITANIC_MUSIC_ROOM_H
23 #define TITANIC_MUSIC_ROOM_H
24 
25 #include "common/array.h"
26 #include "titanic/sound/music_room_handler.h"
27 
28 namespace Titanic {
29 
30 class CGameManager;
31 class CSound;
32 
33 class CMusicRoom {
34 private:
35  MusicRoomInstrument _instruments[4];
36 public:
37  static CMusicRoomHandler *_musicHandler;
38 public:
39  CGameManager *_gameManager;
40  CSound *_sound;
41 public:
42  CMusicRoom(CGameManager *owner);
43  ~CMusicRoom();
44 
49 
53  void destroyMusicHandler();
54 
58  void setSpeedControl(MusicInstrument instrument, int val) {
59  _instruments[instrument]._speedControl = val;
60  }
61 
65  void setPitchControl(MusicInstrument instrument, int val) {
66  _instruments[instrument]._pitchControl = val;
67  }
68 
72  void setDirectionControl(MusicInstrument instrument, bool val) {
73  _instruments[instrument]._directionControl = val;
74  }
75 
79  void setInversionControl(MusicInstrument instrument, bool val) {
80  _instruments[instrument]._inversionControl = val;
81  }
82 
86  void setMuteControl(MusicInstrument instrument, bool val) {
87  _instruments[instrument]._muteControl = val;
88  }
89 
93  void setupMusic(int volume);
94 
98  void stopMusic();
99 };
100 
101 } // End of namespace Titanic
102 
103 #endif /* TITANIC_MUSIC_ROOM_H */
Definition: music_room_handler.h:47
void setupMusic(int volume)
void setMuteControl(MusicInstrument instrument, bool val)
Definition: music_room.h:86
Definition: game_manager.h:48
void setDirectionControl(MusicInstrument instrument, bool val)
Definition: music_room.h:72
Definition: arm.h:30
Definition: music_room_handler.h:37
void setPitchControl(MusicInstrument instrument, int val)
Definition: music_room.h:65
Definition: sound.h:60
void setSpeedControl(MusicInstrument instrument, int val)
Definition: music_room.h:58
CMusicRoomHandler * createMusicHandler()
void setInversionControl(MusicInstrument instrument, bool val)
Definition: music_room.h:79
Definition: music_room.h:33