voxio 0.1.5

A lightweight audio playback engine
Documentation

VOXIO

Voxio is a lightweight, easy to use, audio playback library, originally written for the NoctaVox project in Rust.

Features

While voxio is extremely lightweight, it boasts a series of features:

  • Gapless playback [use the Voxio::set_next() method]
  • Seemless seeking capabilities
  • Multi codec support including opus
  • Built in sample tap for real-time visualizations

Usage

use voxio::Vox;

fn main() { let audio_file1: &str = r"path_to/audio_file1.mp4"; let
audio_file2: &str = r"path_to/audio_file2.flac";

    let mut vox = Vox::new().expect("Failed to initialize voxio engine!");
    vox.play(audio_file1).expect("Could not play file!");
    vox.set_next(audio_file2).expect("Failed to queue next song!");

    // Keep thread alive until playback stops
    while vox.is_active() {
        std::thread::sleep(std::time::Duration::from_millis(20)); 
    } 
} 

Disclaimer

Voxio was written with the use of AI tooling. It is primarily an educational project for myself insofar as learning how audio playback engines work, but some code was generated by AI. However, stability is important and the NoctaVox project relies on Voxio, so changes are reviewed, tested, and implemented with careful consideration.