ScummVM API documentation
segacd.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_SEGACD_H
25#define KYRA_SOUND_SEGACD_H
26
27#include "common/scummsys.h"
28#include "common/array.h"
29
30namespace Audio {
31 class Mixer;
32}
33
34namespace Kyra {
35
36class SegaAudioDriverInternal;
37
38class SegaAudioDriver {
39public:
40 SegaAudioDriver(Audio::Mixer *mixer);
41 ~SegaAudioDriver();
42
43 enum PrioFlags {
44 kPrioHigh = 0x10,
45 kPrioLow = 0x20
46 };
47
48 void startFMSound(const uint8 *trackData, uint8 volume, PrioFlags prioFlags);
49
50 void loadPCMData(uint16 address, const uint8 *data, uint16 dataLen);
51 void startPCMSound(uint8 channel, uint8 dataStart, uint16 loopStart = 0xFF00, uint16 rate = 0x300, uint8 pan = 0xFF, uint8 vol = 0xFF);
52
53 void setMusicVolume(int volume);
54 void setSoundEffectVolume(int volume);
55
56private:
57 SegaAudioDriverInternal *_drv;
58};
59
60} // End of namespace Kyra
61
62#endif
63
64#endif
Definition: mixer.h:70
Definition: system.h:39
Definition: detection.h:27