plughost-core 0.2.6

Shared types and offline render rules for plughost
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use std::io;

pub(super) const CONFIGURATION: &str =
    "the shared audio configuration exceeds its fixed storage budget";
pub(super) const TRANSFER: &str = "the shared audio handle transfer is invalid";
pub(super) const BLOCK: &str = "the shared audio block does not match the prepared slot";
pub(super) const GENERATION: &str = "the shared audio generation is invalid";
pub(super) const EVENTS: &str = "the shared audio events are invalid";
#[cfg(unix)]
pub(super) const MEMORY: &str = "the shared memory is smaller than its mapping";
pub(super) const STORAGE: &str = "could not reserve local shared audio storage";

pub(super) fn invalid(message: &'static str) -> io::Error {
    io::Error::new(io::ErrorKind::InvalidData, message)
}