mocha_audio

Crates.iomocha_audio
lib.rsmocha_audio
version0.1.1
sourcesrc
created_at2023-09-03 14:18:03.373708
updated_at2023-09-05 02:17:59.094069
descriptionLibrary for handle audio, for now it's just a wrapper for miniaudio
homepage
repositoryhttps://codeberg.org/cafe/mocha
max_upload_size
id962268
size4,942,210
Canoi Gomes (canoi12)

documentation

README

Mocha

Mocha is a lib for handle audio using miniaudio, my plan is to exclude miniaudio dependency for use Rust only to make an audio engine.

The project is one of the modules of the cafe project.

extern crate mocha;

use mocha::{Audio, AudioUsage};

fn main() {
    mocha::init();
    let audio = mocha::load("audio.wav", AudioUsage::Stream).unwrap();
    let instance = audio.play();
    while instance.is_playing() {}
    mocha::quit();
}
Commit count: 0

cargo fmt