| Crates.io | musix |
| lib.rs | musix |
| version | 0.3.1 |
| created_at | 2024-03-22 18:27:26.633556+00 |
| updated_at | 2025-09-18 18:10:09.846687+00 |
| description | Music player library for esoteric audio formats (music from C64,Amiga etc) |
| homepage | https://github.com/sasq64/musicplayer |
| repository | |
| max_upload_size | 20000000 |
| id | 1182858 |
| size | 46,392,327 |
musix is a library for playing old (esoteric) music formats from home computers and game consoles.
Check the musix_player crate for example usage.
// need to initialize and get access to meta data provided
// in the data/ directory.
musix::init(Path::new("data"))?;
let song_path = PathBuf::from(song_file);
// Try to load a song
let mut player = musix::load_song(&song_path)?;
let mut target: Vec<i16> = vec![0; 32768];
// Generate some audio samples
player.get_samples(&mut target[0..data.len()]);