sim-lib-sound-bridge 0.1.1

SIM workspace package for sim lib sound bridge.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
use thiserror::Error;

/// Error raised by the MIDI-to-sound bridge and its voice pool.
#[derive(Debug, Error, Clone, PartialEq, Eq)]
pub enum SoundBridgeError {
    /// The configured polyphony limit was zero.
    #[error("polyphony must be positive")]
    ZeroPolyphony,
    /// An event arrived with a tick earlier than the last processed event.
    #[error("bridge clock moved backwards")]
    NonMonotonicTime,
}