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
SID
{
28
29
class
SID
;
30
31
class
Config
{
32
public
:
33
enum
SidType {
34
kSidPAL,
35
kSidNTSC
36
};
37
41
static
SID
*
create
(SidType type);
42
};
43
44
class
SID
:
virtual
public
Audio::Chip
{
45
private
:
46
static
bool
_hasInstance;
47
48
public
:
49
SID
();
50
virtual
~
SID
();
51
57
virtual
bool
init() = 0;
58
62
virtual
void
reset() = 0;
63
70
virtual
void
writeReg(
int
r,
int
v) = 0;
71
};
72
73
}
// End of namespace SID
74
75
#endif
SID::Config
Definition:
sid.h:31
Audio::Chip
Definition:
chip.h:33
SID::Config::create
static SID * create(SidType type)
SID
Definition:
sid.h:27
audio
sid.h
Generated on Mon Mar 9 2026 09:03:58 for ScummVM API documentation by
1.8.13