ScummVM API documentation
audiomaster2.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#ifdef ENABLE_EOB
23
24#ifndef KYRA_SOUND_AUDIOMASTER2_H
25#define KYRA_SOUND_AUDIOMASTER2_H
26
27namespace Audio {
28 class Mixer;
29}
30
31namespace Common {
32 class SeekableReadStream;
33 class String;
34}
35
36namespace Kyra {
37
38class AudioMaster2Internal;
39
40class AudioMaster2 {
41public:
42 AudioMaster2(Audio::Mixer *mixer);
43 ~AudioMaster2();
44
45 bool init();
46 bool loadRessourceFile(Common::SeekableReadStream *data);
47
48 bool startSound(const Common::String &name);
49 bool stopSound(const Common::String &name);
50
51 void flushResource(const Common::String &name);
52 void flushAllResources();
53
54 void fadeOut(int delay);
55 bool isFading();
56
57 int getPlayDuration();
58
59 void setMusicVolume(int volume);
60 void setSoundEffectVolume(int volume);
61
62private:
63 AudioMaster2Internal *_am2i;
64};
65
66} // End of namespace Kyra
67
68#endif
69
70#endif
Definition: mixer.h:70
Definition: stream.h:745
Definition: str.h:59
Definition: system.h:39
Definition: algorithm.h:29
Definition: detection.h:27