use std::path::PathBuf; use rodio::{OutputStream, Sink}; use rodio_xm::XMSource; fn main() { let source = XMSource::from_file( PathBuf::from("examples/drozerix_-_chica-pop!.xm"), 44100 ); let (_stream, stream_handle) = OutputStream::try_default().unwrap(); let sink = Sink::try_new(&stream_handle).unwrap(); sink.append(source); sink.play(); loop {} }