ScummVM API documentation
sound.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 MM_MM1_SOUND_H
23
#define MM_MM1_SOUND_H
24
25
#include "mm/shared/xeen/sound.h"
26
#include "mm/shared/classic/pc_speaker.h"
27
28
namespace
MM
{
29
namespace
MM1 {
30
31
enum
SoundId {
32
SOUND_TITLE = 0,
33
SOUND_1 = 1, SOUND_2 = 2, SOUND_3 = 3, SOUND_4 = 4,
34
SOUND_5 = 5, SOUND_8 = 8, SOUND_9 = 9
35
};
36
37
class
Sound
:
public
Shared::Xeen::Sound
{
38
private
:
39
Shared::Classic::PcSpeaker
_speaker;
40
41
static
void
playSequence(
const
Shared::Classic::PitSequenceEntry
*sequence,
bool
append =
false
,
bool
restart =
false
,
bool
loop =
false
);
42
43
public
:
44
Sound
(
Audio::Mixer
*mixer);
45
~
Sound
()
override
{}
46
47
static
void
sound(SoundId soundNum);
48
static
void
sound2(SoundId soundNum);
49
static
void
update();
50
static
void
stopSound();
51
};
52
53
}
// namespace MM1
54
}
// namespace MM
55
56
#endif
MM::Shared::Classic::PitSequenceEntry
Definition:
pc_speaker.h:35
MM::Shared::Classic::PcSpeaker
Definition:
pc_speaker.h:45
Audio::Mixer
Definition:
mixer.h:70
MM::MM1::Sound
Definition:
sound.h:37
MM
Definition:
detection.h:27
MM::Shared::Xeen::Sound
Definition:
sound.h:35
engines
mm
mm1
sound.h
Generated on Tue Jun 9 2026 09:07:32 for ScummVM API documentation by
1.8.13