rustzx 0.13.0

ZX Spectum emulator
1
2
3
4
5
6
7
8
9
10
11
12
13
//! platform-independent traits. Submodules with backends will be selectable
//! via cargo features in future
mod sound_sdl;
use rustzx_core::zx::sound::sample::SoundSample;

pub use sound_sdl::SoundSdl;

// default sample type
pub type ZXSample = SoundSample<f32>;
pub trait SoundDevice {
    // blocking function to send new sample
    fn send_sample(&mut self, sample: ZXSample);
}