Audio class Null safety

Constructors

Audio()

Properties

hashCode int
The hash code for this object.
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

enumAudioMixer() Future<List<ProcessVolume>?>
Returns a Future with a list of ProcessVolume objects containing information about all audio mixers.
enumDevices(AudioDeviceType audioDeviceType) Future<List<AudioDevice>?>
Returns a Future list of audio devices of a specified type.
getDefaultDevice(AudioDeviceType audioDeviceType) Future<AudioDevice?>
getVolume(AudioDeviceType audioDeviceType) Future<double>
Returns the current volume for the given audio device type.
setAudioMixerVolume(int processID, double volume) Future<bool>
This function sets the audio mixer volume for the specified process ID. The volume level is a number between 0 and 1, with 1 being the maximum volume.
setDefaultDevice(String deviceID) Future<int>
Sets the default audio device.
setVolume(double volume, AudioDeviceType audioDeviceType) Future<int>
This function sets the volume of the specified audio device type. The volume level is a number between 0 and 1, with 1 being the maximum volume.
switchDefaultDevice(AudioDeviceType audioDeviceType) Future<double>
This function switches the audio device to the specified type.