|
Xemu [doxygen]
hyppo 0a42be3a057156924bc1b626a687bd6e27349c45 @ Sat 19 Mar 02:15:11 CET 2022
|
Go to the documentation of this file.
51 #ifndef __SIDENGINE_H_IS_INCLUDED
52 #define __SIDENGINE_H_IS_INCLUDED
54 #include <SDL_atomic.h>
57 #define SID_DC_LEVEL 0x38
59 #define SID_USES_FILTER
75 #define NUMBER_OF_SID_REGISTERS_FOR_SNAPSHOT 0x20
135 unsigned char voiceEnableMask;
153 extern void sid_init (
struct SidEmulation *sidemu,
unsigned long cyclesPerSec,
unsigned long mixfrq );
156 #ifdef XEMU_SNAPSHOT_SUPPORT
159 extern int sid_snapshot_load_state (
const struct xemu_snapshot_definition_st *def ,
struct xemu_snapshot_block_st *
block );
160 extern int sid_snapshot_save_state (
const struct xemu_snapshot_definition_st *def );
unsigned int sMuteVoice[3]
int envelope_counter_period[16]
unsigned long sAdsrBugTriggerTime
#define NUMBER_OF_SID_REGISTERS_FOR_SNAPSHOT
void sid_init(struct SidEmulation *sidemu, unsigned long cyclesPerSec, unsigned long mixfrq)
void sid_write_reg(struct SidEmulation *sidemu, int reg, unsigned char val)
unsigned long cyclesPerSec
struct SidEmulation::SidRegisters::SidVoice v[3]
unsigned char writtenRegisterValues[NUMBER_OF_SID_REGISTERS_FOR_SNAPSHOT]
unsigned char exponential_counter
struct SidEmulation::SidFilter filter
unsigned char envelopeOutput
int envelope_counter_period_clck[16]
unsigned long sLastPolledOsc
struct SidEmulation::SidRegisters sid
unsigned long mixing_frequency
struct SidEmulation::SidOsc osc[3]
unsigned long sLastFrameCount
void sid_render(struct SidEmulation *sidemu, short *buffer, unsigned long len, int step)
unsigned long sAdsrBugFrameCount