ScummVM API documentation
sid.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 AUDIO_SID_H
23
#define AUDIO_SID_H
24
25
#include "audio/chip.h"
26
27
namespace
Common
{
28
class
String;
29
}
30
31
namespace
SID {
32
33
class
SID;
34
35
class
Config
{
36
public
:
37
enum
SidType {
38
kSidPAL,
39
kSidNTSC
40
};
41
45
static
SID
*
create
(SidType type);
46
47
static
SidType parseSidType(
const
Common::String
&str);
48
};
49
50
class
SID
:
virtual
public
Audio::Chip
{
51
private
:
52
static
bool
_hasInstance;
53
54
public
:
55
SID
();
56
virtual
~SID
();
57
63
virtual
bool
init
() = 0;
64
68
virtual
void
reset
() = 0;
69
76
virtual
void
writeReg
(
int
r,
int
v) = 0;
77
};
78
79
}
// End of namespace SID
80
81
#endif
Audio::Chip
Definition:
chip.h:33
Common::String
Definition:
str.h:59
SID::Config
Definition:
sid.h:35
SID::Config::create
static SID * create(SidType type)
SID::SID
Definition:
sid.h:50
SID::SID::writeReg
virtual void writeReg(int r, int v)=0
SID::SID::reset
virtual void reset()=0
SID::SID::init
virtual bool init()=0
Common
Definition:
algorithm.h:29
audio
sid.h
Generated on Sat Oct 24 2026 09:08:51 for ScummVM API documentation by
1.9.4