Devices
Sound device management in your hands!
The device tools shipped with the Basolia library allow you to manage your sound devices and your available sound drivers for MPG123.
Getting drivers
To get a list of drivers with their descriptions, you can call the GetDrivers()
function to get a read-only dictionary with driver names as the key and their descriptions as their values.
Getting devices
To get a list of available sound devices from a sound driver, you can use the GetDevices()
function to get all the available sound devices that the specified sound driver detected. The second argument is a string output variable that describes the active device.
Setting active driver
To set the active driver for the application's lifetime, you can use the SetActiveDriver()
function.
Setting active device
To set the active device for a specified driver, you can use the SetActiveDevice()
function.
Getting current driver and device
If you want to know your current device and driver that are being used by MPG123 to play music from, you'll need to use one of the following functions:
GetCurrent()
: Gets the current driver and device that MPG123 reportsGetCurrentCached()
: Gets the cached current driver and device that Basolia reports
Last updated