ScummVM API documentation
te_sound_manager.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
#include "audio/mixer.h"
23
#include "common/str.h"
24
#include "common/path.h"
25
26
#ifndef TETRAEDGE_TE_TE_SOUND_MANAGER_H
27
#define TETRAEDGE_TE_TE_SOUND_MANAGER_H
28
29
namespace
Tetraedge
{
30
31
class
TeMusic;
32
33
class
TeSoundManager
{
34
public
:
35
TeSoundManager
();
36
37
void
playFreeSound(
const
Common::Path
&path);
38
void
playFreeSound(
const
Common::Path
&path,
float
vol,
const
Common::String
&channel);
39
void
stopFreeSound(
const
Common::String
&channel);
40
41
void
setChannelVolume(
const
Common::String
&channel,
float
vol);
42
float
getChannelVolume(
const
Common::String
&channel);
43
void
update();
44
45
Common::Array<TeMusic *>
&musics() {
return
_musics; }
46
47
private
:
48
Common::HashMap<Common::String, Audio::SoundHandle>
_handles;
49
50
Common::Array<TeMusic *>
_musics;
51
};
52
53
}
// end namespace Tetraedge
54
55
#endif // TETRAEDGE_TE_TE_SOUND_MANAGER_H
Common::String
Definition:
str.h:59
Tetraedge
Definition:
detection.h:27
Common::Array
Definition:
array.h:52
Common::Path
Definition:
path.h:52
Common::HashMap< Common::String, Audio::SoundHandle >
Tetraedge::TeSoundManager
Definition:
te_sound_manager.h:33
engines
tetraedge
te
te_sound_manager.h
Generated on Sun Dec 22 2024 09:19:49 for ScummVM API documentation by
1.8.13