ScummVM API documentation
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Modules
Pages
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
27
namespace
Audio
{
28
class
Mixer;
29
}
30
31
namespace
Common
{
32
class
SeekableReadStream;
33
class
String;
34
}
35
36
namespace
Kyra
{
37
38
class
AudioMaster2Internal;
39
40
class
AudioMaster2 {
41
public
:
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
62
private
:
63
AudioMaster2Internal *_am2i;
64
};
65
66
}
// End of namespace Kyra
67
68
#endif
69
70
#endif
Common::String
Definition:
str.h:59
Common::SeekableReadStream
Definition:
stream.h:745
Audio::Mixer
Definition:
mixer.h:59
Common
Definition:
algorithm.h:29
Kyra
Definition:
detection.h:27
Audio
Definition:
system.h:38
engines
kyra
sound
drivers
audiomaster2.h
Generated on Wed Apr 9 2025 09:16:03 for ScummVM API documentation by
1.8.13