mocha_audio 0.1.1

Library for handle audio, for now it's just a wrapper for miniaudio
Documentation
  • Coverage
  • 0%
    0 out of 28 items documented0 out of 21 items with examples
  • Size
  • Source code size: 4.94 MB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 545.17 kB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 26s Average build duration of successful builds.
  • all releases: 26s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • Repository
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • canoi12

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();
}