summaryrefslogtreecommitdiff
path: root/opl/dbopl.h
diff options
context:
space:
mode:
authorSimon Howard2010-08-15 14:57:37 +0000
committerSimon Howard2010-08-15 14:57:37 +0000
commit578a06c798f9b0d52f74d8bfc9258ef74a9bb6c9 (patch)
tree1da709cc927ec95ab1aaa907b59e0b794a8b1fc5 /opl/dbopl.h
parent6ebf557c44b11a16ff15e5f560a81753be33bad3 (diff)
downloadchocolate-doom-578a06c798f9b0d52f74d8bfc9258ef74a9bb6c9.tar.gz
chocolate-doom-578a06c798f9b0d52f74d8bfc9258ef74a9bb6c9.tar.bz2
chocolate-doom-578a06c798f9b0d52f74d8bfc9258ef74a9bb6c9.zip
Hook DBOPL into OPL library and remove FMOPL. Does not generate any
sound yet. Subversion-branch: /trunk/chocolate-doom Subversion-revision: 1956
Diffstat (limited to 'opl/dbopl.h')
-rw-r--r--opl/dbopl.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/opl/dbopl.h b/opl/dbopl.h
index f7d2e416..a5c10bfd 100644
--- a/opl/dbopl.h
+++ b/opl/dbopl.h
@@ -47,7 +47,7 @@ typedef Bits ( DB_FASTCALL *WaveHandler) ( Bitu i, Bitu volume );
#define DB_FASTCALL
-typedef Bits (*VolumeHandler)();
+typedef Bits (*VolumeHandler)(Operator *self);
typedef Channel* (*SynthHandler)(Channel *self, Chip* chip, Bit32u samples, Bit32s* output );
//Different synth modes that can generate blocks of data
@@ -194,3 +194,10 @@ struct Handler : public Adlib::Handler {
*/
+void Chip__Setup(Chip *self, Bit32u rate );
+void DBOPL_InitTables( void );
+void Chip__Chip(Chip *self);
+void Chip__WriteReg(Chip *self, Bit32u reg, Bit8u val );
+void Chip__GenerateBlock2(Chip *self, Bitu total, Bit32s* output );
+
+