27#include "sidplayfp/event.h"
29#include "EventScheduler.h"
30#include "sidplayfp/siddefs.h"
42#define HSID_VERSION_MIN (WORD) 0x0200
43#define HSID_VERSION_204 (WORD) 0x0204
44#define HSID_VERSION_207 (WORD) 0x0207
48typedef void (CALLBACK* HsidDLL2_Delay_t) (BYTE deviceID, WORD cycles);
49typedef BYTE (CALLBACK* HsidDLL2_Devices_t) ();
50typedef void (CALLBACK* HsidDLL2_Filter_t) (BYTE deviceID, BOOL
filter);
51typedef void (CALLBACK* HsidDLL2_Flush_t) (BYTE deviceID);
52typedef void (CALLBACK* HsidDLL2_Mute_t) (BYTE deviceID, BYTE channel, BOOL mute);
53typedef void (CALLBACK* HsidDLL2_MuteAll_t) (BYTE deviceID, BOOL mute);
54typedef void (CALLBACK* HsidDLL2_Reset_t) (BYTE deviceID);
55typedef BYTE (CALLBACK* HsidDLL2_Read_t) (BYTE deviceID, WORD cycles, BYTE SID_reg);
56typedef void (CALLBACK* HsidDLL2_Sync_t) (BYTE deviceID);
57typedef void (CALLBACK* HsidDLL2_Write_t) (BYTE deviceID, WORD cycles, BYTE SID_reg, BYTE data);
58typedef WORD (CALLBACK* HsidDLL2_Version_t) ();
61typedef BOOL (CALLBACK* HsidDLL2_Lock_t) (BYTE deviceID);
62typedef void (CALLBACK* HsidDLL2_Unlock_t) (BYTE deviceID);
63typedef void (CALLBACK* HsidDLL2_Reset2_t) (BYTE deviceID, BYTE volume);
66typedef void (CALLBACK* HsidDLL2_Mute2_t) (BYTE deviceID, BYTE channel, BOOL mute, BOOL manual);
71 HsidDLL2_Delay_t Delay;
72 HsidDLL2_Devices_t Devices;
73 HsidDLL2_Filter_t Filter;
74 HsidDLL2_Flush_t Flush;
76 HsidDLL2_Unlock_t Unlock;
78 HsidDLL2_Mute2_t Mute2;
79 HsidDLL2_MuteAll_t MuteAll;
80 HsidDLL2_Reset_t Reset;
81 HsidDLL2_Reset2_t Reset2;
84 HsidDLL2_Write_t Write;
90#define HARDSID_VOICES 3
92#define HARDSID_DELAY_CYCLES 60000
104 static bool m_sidFree[16];
108 static const unsigned int voices;
109 static unsigned int sid;
112 bool muted[HARDSID_VOICES];
113 unsigned int m_instance;
116 static const char* getCredits();
123 void reset() { sidemu::reset (); }
124 void reset(uint8_t volume);
126 uint8_t read(uint_least8_t addr);
127 void write(uint_least8_t addr, uint8_t data);
130 bool getStatus()
const {
return m_status; }
133 void filter(
bool enable);
135 void voice(
unsigned int num,
bool mute);
Definition: hardsid-emu.h:98
void clock()
Definition: hardsid-emu-unix.cpp:135
bool lock(EventContext *env)
Definition: hardsid-emu-unix.cpp:233
void unlock()
Definition: hardsid-emu-unix.cpp:241
void voice(unsigned int num, bool mute)
Definition: hardsid-emu-unix.cpp:194
void model(SidConfig::sid_model_t model SID_UNUSED)
Definition: hardsid-emu.h:134
Definition: sidbuilder.h:38
virtual void filter(bool enable)=0