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
28namespace Titanic {
29
30class CGameManager;
31class CSound;
32
34private:
35 MusicRoomInstrument _instruments[4];
36public:
37 static CMusicRoomHandler *_musicHandler;
38public:
39 CGameManager *_gameManager;
40 CSound *_sound;
41public:
44
49
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: game_manager.h:48
Definition: music_room_handler.h:47
Definition: music_room.h:33
CMusicRoomHandler * createMusicHandler()
void setSpeedControl(MusicInstrument instrument, int val)
Definition: music_room.h:58
void setInversionControl(MusicInstrument instrument, bool val)
Definition: music_room.h:79
void setDirectionControl(MusicInstrument instrument, bool val)
Definition: music_room.h:72
void setMuteControl(MusicInstrument instrument, bool val)
Definition: music_room.h:86
void setupMusic(int volume)
void setPitchControl(MusicInstrument instrument, int val)
Definition: music_room.h:65
Definition: sound.h:60
Definition: music_room_handler.h:37