AudioDeviceInfo
data class AudioDeviceInfo(val id: Int, val name: String, val isInput: Boolean, val isOutput: Boolean, val sampleRates: List<Int>, val channelCounts: List<Int>)
Describes an available audio device on the current platform.
Obtain the list of available devices via AudioEngine.getAvailableDevices or query the default device for a given direction with AudioEngine.getDefaultDevice.
A single physical device (e.g., a USB audio interface) may support both input and output, in which case both isInput and isOutput will be true.
See also
Constructors
Properties
Link copied to clipboard
List of channel counts supported by this device. For example, [1, 2] means the device supports both mono and stereo. An empty list indicates that the platform did not report supported channel configurations.
Link copied to clipboard
List of sample rates (in Hz) supported by this device. Common values include 44100, 48000, and 96000. An empty list indicates that the platform did not report supported rates.