old school music tracker audio backend
1use torque_tracker_engine::file;
2
3fn main() {
4 // let file = include_bytes!("../test-files/test-1.it");
5 // let mut reader = std::io::Cursor::new(&file);
6 // let song = file::parse_song(&mut reader);
7 let path = std::env::args().nth(1).unwrap();
8 println!("path: {path}");
9 // let file_content = std::fs::read(&path).unwrap();
10 // assert!(file_content == file);
11 let file = std::fs::File::open(&path).unwrap();
12 println!("file len: {}", file.metadata().unwrap().len());
13 let mut reader = std::io::BufReader::new(file);
14 let song = file::parse_song(&mut reader).unwrap();
15 println!("{song:?}");
16}