Struct aym::AymPrecise
source · pub struct AymPrecise { /* private fields */ }
Expand description
Precise AY/YM sound chip generation backend.
Original code for this backend is derived from ayumi
C library by Peter Sovietov
Link to original repo: https://github.com/true-grue/ayumi
Uses f64 for computations.
Implementations§
source§impl AymPrecise
impl AymPrecise
sourcepub fn enable_dc_filter(&mut self)
pub fn enable_dc_filter(&mut self)
Enabled dc filter for samples
Trait Implementations§
source§impl AymBackend for AymPrecise
impl AymBackend for AymPrecise
§type SoundSample = f64
type SoundSample = f64
Resulting sample type
source§fn new(
chip: SoundChip,
mode: AyMode,
frequency: usize,
sample_rate: usize
) -> Self
fn new( chip: SoundChip, mode: AyMode, frequency: usize, sample_rate: usize ) -> Self
Creates new aym instance. Read more
source§fn write_register(&mut self, address: u8, value: u8)
fn write_register(&mut self, address: u8, value: u8)
Write value to the sound chip register.
address
should be in [0..AY_REGISTER_COUNT]
source§fn next_sample(&mut self) -> StereoSample<Self::SoundSample>
fn next_sample(&mut self) -> StereoSample<Self::SoundSample>
Generates next sound sample