#[non_exhaustive]#[repr(i32)]pub enum AudioError {
Show 17 variants
Base = -900,
Disconnected = -899,
IllegalArgument = -898,
Internal = -896,
InvalidState = -895,
InvalidHandle = -892,
Unimplemented = -890,
Unavailable = -889,
NoFreeHandles = -888,
NoMemory = -887,
Null = -886,
Timeout = -885,
WouldBlock = -884,
InvalidFormat = -883,
OutOfRange = -882,
NoService = -881,
InvalidRate = -880,
}
audio
only.Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Base = -900
Disconnected = -899
The audio device was disconnected. This could occur, for example, when headphones are plugged in or unplugged. The stream cannot be used after the device is disconnected. Applications should stop and close the stream. If this error is received in an error callback then another thread should be used to stop and close the stream.
IllegalArgument = -898
An invalid parameter was passed to AAudio.
Internal = -896
The requested operation is not appropriate for the current state of AAudio.
InvalidState = -895
The requested operation is not appropriate for the current state of AAudio.
InvalidHandle = -892
The server rejected the handle used to identify the stream.
Unimplemented = -890
The function is not implemented for this stream.
A resource or information is unavailable. This could occur when an application tries to open too many streams, or a timestamp is not available.
NoFreeHandles = -888
Memory could not be allocated.
NoMemory = -887
Memory could not be allocated.
Null = -886
Timeout = -885
WouldBlock = -884
InvalidFormat = -883
The requested data format is not supported.
OutOfRange = -882
A requested was out of range.
NoService = -881
The audio service was not available.
InvalidRate = -880
The requested sample rate was not supported.
Implementations§
Trait Implementations§
Source§impl Clone for AudioError
impl Clone for AudioError
Source§fn clone(&self) -> AudioError
fn clone(&self) -> AudioError
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more