Crates.io | musix |
lib.rs | musix |
version | 0.2.1 |
source | src |
created_at | 2024-03-22 18:27:26.633556 |
updated_at | 2024-05-31 18:03:55.351036 |
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,061,637 |
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()]);