Enum ndk::audio::AudioError
source · #[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 moresource§impl Debug for AudioError
impl Debug for AudioError
source§impl Display for AudioError
impl Display for AudioError
source§impl Error for AudioError
impl Error for AudioError
1.30.0 · 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
source§impl From<AudioError> for i32
impl From<AudioError> for i32
source§fn from(enum_value: AudioError) -> Self
fn from(enum_value: AudioError) -> Self
source§impl From<i32> for AudioError
impl From<i32> for AudioError
source§impl FromPrimitive for AudioError
impl FromPrimitive for AudioError
source§impl PartialEq for AudioError
impl PartialEq for AudioError
source§fn eq(&self, other: &AudioError) -> bool
fn eq(&self, other: &AudioError) -> bool
self
and other
values to be equal, and is used
by ==
.