volumecontrol-core 0.1.2

Common traits, errors and utilities for volumecontrol crates
Documentation

volumecontrol-core

Core traits, errors, and shared types for the volumecontrol crate family.

This crate defines the AudioDevice trait and the AudioError and DeviceInfo types that are shared across all platform backends.

Note: This crate is not intended to be used directly. Depend on the volumecontrol crate, which selects the right platform backend automatically.


Usage

If you are building a custom backend or need direct access to the shared types:

[dependencies]
volumecontrol-core = "0.1"

Example

use volumecontrol_core::AudioError;

// `AudioError` is returned by all fallible operations across backends.
let err = AudioError::DeviceNotFound;
println!("{err}");  // "audio device not found"

Built with AI

This crate is part of the volumecontrol workspace, which was built 100% with GitHub Copilot (Claude Opus & Claude Sonnet) as an experiment in AI-driven development of a production-ready Rust crate.

License

MIT — see the LICENSE file for details.