getAudioDevices method
Get all the audio devices on this system.
Under the hood, uses the SDL_GetNumAudioDevices function.
Implementation
// ignore: avoid_positional_boolean_parameters
List<AudioDevice> getAudioDevices(final bool isCapture) {
final numDevices = sdl.SDL_GetNumAudioDevices(boolToValue(isCapture));
final l = <AudioDevice>[];
for (var i = 0; i < numDevices; i++) {
l.add(AudioDevice(this, i, isCapture));
}
return l;
}