provides a Source for playback of FastTracker 2 Extended Modules in rodio
Go to file
Max Bradbury 8c1e5fc161 version bump 2021-11-27 11:53:06 +00:00
examples populate examples; update rodio version 2021-11-27 11:41:32 +00:00
src populate examples; update rodio version 2021-11-27 11:41:32 +00:00
.gitignore ignore IDEA metadata 2021-11-27 11:50:26 +00:00
Cargo.lock version bump 2021-11-27 11:53:06 +00:00
Cargo.toml version bump 2021-11-27 11:53:06 +00:00
LICENSE populate examples; update rodio version 2021-11-27 11:41:32 +00:00
README.md updated readme 2021-11-27 11:49:47 +00:00

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.