X-Git-Url: https://codewiz.org/gitweb?p=mandelwow.git;a=blobdiff_plain;f=sound.rs;fp=sound.rs;h=859decf8bd42cf3fff97b6a36a32dc31b6e9ce02;hp=d7dae929fa75cf9df80097d8db954338662f5464;hb=8c4dafcdc1b1edc686f02df6e9a53b10e1ca1bf0;hpb=55d1cdb0feb935c62398185e2d176792a82f7692 diff --git a/sound.rs b/sound.rs index d7dae92..859decf 100644 --- a/sound.rs +++ b/sound.rs @@ -29,8 +29,8 @@ fn play_xm(raw_xm: &[u8]) -> SoundPlayer { let desired_spec = AudioSpecDesired { freq: Some(SAMPLE_RATE), - channels: Some(2u8), - samples: None, + channels: Some(2), + samples: Some(4096), // 85ms }; let device = sdl_audio.open_playback(None, &desired_spec, |actual_spec| { let xm = XMContext::new(&raw_xm, actual_spec.freq as u32).unwrap();