#[non_exhaustive]pub enum Error {
}Expand description
Errors returned by moq-audio.
Clone so a failure can be reported to more than one observer, matching
hang::Error, moq_mux::Error, and moq_net::Error.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Unsupported(String)
The requested configuration is outside what the codec or device supports, e.g. a sample rate, channel count, or frame duration Opus can’t encode, or a capture format the microphone can’t deliver. The caller asked for something impossible; picking different settings fixes it.
Device(String)
No audio device matched the requested selector, or the machine has no
default input. Retrying won’t help until the device list changes;
capture::devices reports what is available.
Capture(String)
The capture backend failed or delivered nothing: a denied permission, a device that stopped mid-stream, or a host API error. The configuration may be fine; the device or its permissions are not.
Playback(String)
The playback backend failed: the output device could not be opened, or the
stream stopped and could not be restarted. The device or host API is at
fault, not the configuration; playback::devices reports what is
available.
Busy(String)
Exclusive audio processing state is already owned by another live capture or playback handle.
Decode(String)
A packet could not be decoded: truncated, corrupt, or using a codec feature this build doesn’t implement. The stream itself may be fine, so a consumer can log this one and read the next packet.
Misaligned
The input buffer was not aligned to the codec’s frame size.
Fields
ResamplerConstruction(String)
The sample-rate converter could not be constructed.
Resample(String)
The sample-rate converter rejected an input buffer or ratio change.
Hang(Error)
hang catalog error.
Mux(Error)
moq-mux container/transport error.
Net(Error)
moq-net transport error.
TimeOverflow(TimeOverflow)
Timestamp overflow.
Trait Implementations§
Source§impl Error for Error
impl Error for Error
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()