AudioDeviceState enum
The state of the audio output device, as reported by
SoLoud.getAudioDeviceState.
The values mirror miniaudio's actual ma_device_state; they do not describe
lifecycle scheduler intent or a pending operation.
WARNING: Keep these in sync with src/enums.h.
Values
- uninitialized → const AudioDeviceState
-
The device is uninitialized. Also returned before the engine is initialized or after it has been deinitialized.
const AudioDeviceState(0) - stopped → const AudioDeviceState
-
The device exists but is currently stopped, for example after the engine has remained idle for its configured timeout.
const AudioDeviceState(1) - started → const AudioDeviceState
-
The device is started and is requesting and/or delivering audio data.
const AudioDeviceState(2) - starting → const AudioDeviceState
-
The device is transitioning from a stopped state to a started state.
const AudioDeviceState(3) - stopping → const AudioDeviceState
-
The device is transitioning from a started state to a stopped state.
const AudioDeviceState(4)
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- index → int
-
A numeric identifier for the enumerated value.
no setterinherited
- name → String
-
Available on Enum, provided by the EnumName extension
The name of the enum value.no setter - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- value → int
-
The native integer value of the state.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Constants
-
values
→ const List<
AudioDeviceState> - A constant List of the values in this enum, in order of their declaration.