Skip to main content

DEFAULT_SAMPLE_RATE

Constant DEFAULT_SAMPLE_RATE 

Source
pub const DEFAULT_SAMPLE_RATE: u32 = 44_100;
Expand description

The APU sample rate Nes::from_rom and friends build with when no explicit rate is given (44_100 Hz).

Re-exported so a downstream consumer that must declare the rate it produces — the libretro core does, in retro_get_system_av_info — can state the real value instead of transcribing a literal that could silently fall out of step with the samples actually emitted. Default audio sample rate. The frontend may rebuild the bus with a different rate when CPAL picks something else.