Xemu [doxygen]  hyppo 0a42be3a057156924bc1b626a687bd6e27349c45 @ Sat 19 Mar 02:15:11 CET 2022
Data Structures | Macros | Enumerations | Functions
sid.h File Reference
#include <SDL_atomic.h>
Include dependency graph for sid.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  SidEmulation
 
struct  SidEmulation::SidRegisters
 
struct  SidEmulation::SidRegisters::SidVoice
 
struct  SidEmulation::SidOsc
 
struct  SidEmulation::SidFilter
 

Macros

#define SID_DC_LEVEL   0x38
 
#define SID_USES_FILTER
 
#define NUMBER_OF_SID_REGISTERS_FOR_SNAPSHOT   0x20
 

Enumerations

enum  EnvelopePhase { Attack = 0, Decay = 1, Sustain = 2, Release = 3 }
 

Functions

void sid_write_reg (struct SidEmulation *sidemu, int reg, unsigned char val)
 
void sid_init (struct SidEmulation *sidemu, unsigned long cyclesPerSec, unsigned long mixfrq)
 
void sid_render (struct SidEmulation *sidemu, short *buffer, unsigned long len, int step)
 

Macro Definition Documentation

◆ NUMBER_OF_SID_REGISTERS_FOR_SNAPSHOT

#define NUMBER_OF_SID_REGISTERS_FOR_SNAPSHOT   0x20

Definition at line 75 of file sid.h.

◆ SID_DC_LEVEL

#define SID_DC_LEVEL   0x38

Definition at line 57 of file sid.h.

◆ SID_USES_FILTER

#define SID_USES_FILTER

Definition at line 59 of file sid.h.

Enumeration Type Documentation

◆ EnvelopePhase

Enumerator
Attack 
Decay 
Sustain 
Release 

Definition at line 67 of file sid.h.

Function Documentation

◆ sid_init()

void sid_init ( struct SidEmulation sidemu,
unsigned long  cyclesPerSec,
unsigned long  mixfrq 
)

Definition at line 649 of file sid.c.

◆ sid_render()

void sid_render ( struct SidEmulation sidemu,
short *  buffer,
unsigned long  len,
int  step 
)

Definition at line 256 of file sid.c.

◆ sid_write_reg()

void sid_write_reg ( struct SidEmulation sidemu,
int  reg,
unsigned char  val 
)

Definition at line 513 of file sid.c.