Max Bradbury e9a1dfe3c5 | ||
---|---|---|
examples | ||
src | ||
.gitignore | ||
Cargo.lock | ||
Cargo.toml | ||
LICENSE | ||
README.md |
README.md
rodio-xm
provides a Source for playback of FastTracker 2 extended modules in rodio
examples
use std::path::PathBuf;
use rodio::{OutputStream, Sink};
use rodio_xm::XMSource;
fn main() {
let source = XMSource::from_file(
PathBuf::from("path/to/file.xm"),
44100
);
let (_stream, stream_handle) = OutputStream::try_default().unwrap();
let sink = Sink::try_new(&stream_handle).unwrap();
sink.append(source);
sink.play();
loop {}
}
see more in the examples directory.
license
released under the MIT license.
example track "Chica-pop!" is in the public domain.