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
27namespace Common {
28class String;
29}
30
31namespace SID {
32
33class SID;
34
35class Config {
36public:
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
50class SID : virtual public Audio::Chip {
51private:
52 static bool _hasInstance;
53
54public:
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
Definition: chip.h:33
Definition: str.h:59
Definition: sid.h:35
static SID * create(SidType type)
Definition: sid.h:50
virtual void writeReg(int r, int v)=0
virtual void reset()=0
virtual bool init()=0
Definition: algorithm.h:29