blob: 8ae139b9fad9b330abcc380ec0f1f6cd2fb8f2a1 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
mod itfile;
mod midifile;
mod portmod;
mod convert;
mod player;
mod utils;
fn main() -> Result<(), itfile::Error> {
/*match itfile::load("/home/chrisoft/Music/mods/nb_tear of the sun.it")
{
Ok(f) =>
{
let mut conv = convert::Converter::new(&f);
conv.convert();
let mf = conv.result();
midifile::write_file("output.mid", &mf)?;
Ok(())
}
Err(e) => Err(e)
}?;*/
match itfile::load("/home/chrisoft/Music/mods/nb_tear of the sun.it") {
Ok(f) => {
let player = player::BasePlayer::new(&f);
player::Player::play(&player);
Ok(())
}
Err(e) => Err(e)
}
}
|