ScummVM API documentation
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
midi.h
1 
2 /* ScummVM - Graphic Adventure Engine
3  *
4  * ScummVM is the legal property of its developers, whose names
5  * are too numerous to list here. Please refer to the COPYRIGHT
6  * file distributed with this source distribution.
7  *
8  * This program is free software: you can redistribute it and/or modify
9  * it under the terms of the GNU General Public License as published by
10  * the Free Software Foundation, either version 3 of the License, or
11  * (at your option) any later version.
12  *
13  * This program is distributed in the hope that it will be useful,
14  * but WITHOUT ANY WARRANTY; without even the implied warranty of
15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16  * GNU General Public License for more details.
17  *
18  * You should have received a copy of the GNU General Public License
19  * along with this program. If not, see <http://www.gnu.org/licenses/>.
20  *
21  */
22 
23 #ifndef M4_SOUND_PLATFORM_MIDI_H
24 #define M4_SOUND_PLATFORM_MIDI_H
25 
26 #include "audio/midiplayer.h"
27 #include "m4/m4_types.h"
28 
29 namespace M4 {
30 namespace Sound {
31 
32 class Midi : public Audio::MidiPlayer {
33 private:
34  static int _midiEndTrigger;
35  Audio::Mixer *_mixer;
36 public:
37  Midi(Audio::Mixer *mixer);
38 
39  void midi_play(const char *name, int volume, int loop, int trigger, int roomNum);
40  void task();
41  void loop();
42  void set_overall_volume(int vol);
43  int get_overall_volume() const;
44 };
45 
46 } // namespace Sound
47 
48 void midi_play(const char *name, int volume, int loop, int trigger, int roomNum);
49 void midi_loop();
50 void midi_stop();
51 void midi_set_overall_volume(int vol);
52 int midi_get_overall_volume();
53 void midi_fade_volume(int val1, int val2);
54 
55 } // namespace M4
56 
57 #endif
Definition: midiplayer.h:63
Definition: midi.h:32
Definition: mixer.h:59
Definition: database.h:28