DeviceFactory

interface DeviceFactory

This factory is used to open new audio devices.

Functions

Link copied to clipboard
@NotNull
abstract fun getDefaultDeviceName(): @NotNull String
Gets the default audio device name.
Link copied to clipboard
@NotNull
abstract fun getDeviceNames(): @NotNull ImmutableList<String>
Gets a list of all available audio device names.
Link copied to clipboard
@NotNull
abstract fun getName(): @NotNull String
Gets the unique factory name of the audio devices produced by this factory.
Link copied to clipboard
@NotNull
abstract fun openDevice(@NotNull format: @NotNull AudioFormat, @Nullable deviceName: @Nullable String): @NotNull AudioDevice
Opens a new audio device with the specified audio format and optional device name.