LMMS
Loading...
Searching...
No Matches
reSID::SID Class Reference

#include <sid.h>

Classes

class  State

Public Member Functions

 SID ()
 ~SID ()
void set_chip_model (chip_model model)
void set_voice_mask (reg4 mask)
void enable_filter (bool enable)
void adjust_filter_bias (double dac_bias)
void enable_external_filter (bool enable)
bool set_sampling_parameters (double clock_freq, sampling_method method, double sample_freq, double pass_freq=-1, double filter_scale=0.97)
void adjust_sampling_frequency (double sample_freq)
void enable_raw_debug_output (bool enable)
void clock ()
void clock (cycle_count delta_t)
int clock (cycle_count &delta_t, short *buf, int n, int interleave=1)
void reset ()
reg8 read (reg8 offset)
void write (reg8 offset, reg8 value)
State read_state ()
void write_state (const State &state)
void input (short sample)
int output ()
void debugoutput (void)

Protected Types

enum  {
  FIR_N = 125 , FIR_RES = 285 , FIR_RES_FASTMEM = 51473 , FIR_SHIFT = 15 ,
  RINGSIZE = 1 << 14 , RINGMASK = RINGSIZE - 1 , FIXP_SHIFT = 16 , FIXP_MASK = 0xffff
}

Protected Member Functions

int clock_fast (cycle_count &delta_t, short *buf, int n, int interleave)
int clock_interpolate (cycle_count &delta_t, short *buf, int n, int interleave)
int clock_resample (cycle_count &delta_t, short *buf, int n, int interleave)
int clock_resample_fastmem (cycle_count &delta_t, short *buf, int n, int interleave)
void write ()

Static Protected Member Functions

static double I0 (double x)

Protected Attributes

chip_model sid_model
Voice voice [3]
Filter filter
ExternalFilter extfilt
Potentiometer potx
Potentiometer poty
reg8 bus_value
cycle_count bus_value_ttl
cycle_count databus_ttl
cycle_count write_pipeline
reg8 write_address
double clock_frequency
sampling_method sampling
cycle_count cycles_per_sample
cycle_count sample_offset
int sample_index
short sample_prev
short sample_now
int fir_N
int fir_RES
double fir_beta
double fir_f_cycles_per_sample
double fir_filter_scale
short * sample
short * fir
bool raw_debug_output

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
protected
Enumerator
FIR_N 
FIR_RES 
FIR_RES_FASTMEM 
FIR_SHIFT 
RINGSIZE 
RINGMASK 
FIXP_SHIFT 
FIXP_MASK 

Constructor & Destructor Documentation

◆ SID()

reSID::SID::SID ( )

◆ ~SID()

reSID::SID::~SID ( )

Member Function Documentation

◆ adjust_filter_bias()

void reSID::SID::adjust_filter_bias ( double dac_bias)

◆ adjust_sampling_frequency()

void reSID::SID::adjust_sampling_frequency ( double sample_freq)

◆ clock() [1/3]

void reSID::SID::clock ( )

◆ clock() [2/3]

int reSID::SID::clock ( cycle_count & delta_t,
short * buf,
int n,
int interleave = 1 )

◆ clock() [3/3]

void reSID::SID::clock ( cycle_count delta_t)

◆ clock_fast()

int reSID::SID::clock_fast ( cycle_count & delta_t,
short * buf,
int n,
int interleave )
protected

◆ clock_interpolate()

int reSID::SID::clock_interpolate ( cycle_count & delta_t,
short * buf,
int n,
int interleave )
protected

◆ clock_resample()

int reSID::SID::clock_resample ( cycle_count & delta_t,
short * buf,
int n,
int interleave )
protected

◆ clock_resample_fastmem()

int reSID::SID::clock_resample_fastmem ( cycle_count & delta_t,
short * buf,
int n,
int interleave )
protected

◆ debugoutput()

void reSID::SID::debugoutput ( void )

◆ enable_external_filter()

void reSID::SID::enable_external_filter ( bool enable)

◆ enable_filter()

void reSID::SID::enable_filter ( bool enable)

◆ enable_raw_debug_output()

void reSID::SID::enable_raw_debug_output ( bool enable)

◆ I0()

double reSID::SID::I0 ( double x)
staticprotected

◆ input()

void reSID::SID::input ( short sample)

◆ output()

int reSID::SID::output ( )

◆ read()

reg8 reSID::SID::read ( reg8 offset)

◆ read_state()

State reSID::SID::read_state ( )

◆ reset()

void reSID::SID::reset ( )

◆ set_chip_model()

void reSID::SID::set_chip_model ( chip_model model)

◆ set_sampling_parameters()

bool reSID::SID::set_sampling_parameters ( double clock_freq,
sampling_method method,
double sample_freq,
double pass_freq = -1,
double filter_scale = 0.97 )

◆ set_voice_mask()

void reSID::SID::set_voice_mask ( reg4 mask)

◆ write() [1/2]

void reSID::SID::write ( )
protected

◆ write() [2/2]

void reSID::SID::write ( reg8 offset,
reg8 value )

◆ write_state()

void reSID::SID::write_state ( const State & state)

Member Data Documentation

◆ bus_value

reg8 reSID::SID::bus_value
protected

◆ bus_value_ttl

cycle_count reSID::SID::bus_value_ttl
protected

◆ clock_frequency

double reSID::SID::clock_frequency
protected

◆ cycles_per_sample

cycle_count reSID::SID::cycles_per_sample
protected

◆ databus_ttl

cycle_count reSID::SID::databus_ttl
protected

◆ extfilt

ExternalFilter reSID::SID::extfilt
protected

◆ filter

Filter reSID::SID::filter
protected

◆ fir

short* reSID::SID::fir
protected

◆ fir_beta

double reSID::SID::fir_beta
protected

◆ fir_f_cycles_per_sample

double reSID::SID::fir_f_cycles_per_sample
protected

◆ fir_filter_scale

double reSID::SID::fir_filter_scale
protected

◆ fir_N

int reSID::SID::fir_N
protected

◆ fir_RES

int reSID::SID::fir_RES
protected

◆ potx

Potentiometer reSID::SID::potx
protected

◆ poty

Potentiometer reSID::SID::poty
protected

◆ raw_debug_output

bool reSID::SID::raw_debug_output
protected

◆ sample

short* reSID::SID::sample
protected

◆ sample_index

int reSID::SID::sample_index
protected

◆ sample_now

short reSID::SID::sample_now
protected

◆ sample_offset

cycle_count reSID::SID::sample_offset
protected

◆ sample_prev

short reSID::SID::sample_prev
protected

◆ sampling

sampling_method reSID::SID::sampling
protected

◆ sid_model

chip_model reSID::SID::sid_model
protected

◆ voice

Voice reSID::SID::voice[3]
protected

◆ write_address

reg8 reSID::SID::write_address
protected

◆ write_pipeline

cycle_count reSID::SID::write_pipeline
protected

The documentation for this class was generated from the following file: