#rodio #module #playback #extended #fast-tracker #xm #source

rodio-xm

provides a source for playback of fasttracker 2 extended modules in rodio

2 releases

0.1.1 Nov 27, 2021
0.1.0 Nov 27, 2021

#6 in #xm

MIT license

26KB
52 lines

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.

Dependencies

~1–5.5MB
~109K SLoC