Get the current audio device and path.
BPS_API int audiodevice_get(audiodevice_device_t *device, char **path)
- This will be populated with the current audio device.
- This will be populated with the current audio device's path. Upon success, the caller is responsible for freeing this buffer using bps_free().
The audiodevice_get() function gets the current audio device and the path of that device. Note that this will fetch values that are valid at the time this function is called.
BPS_SUCCESS upon success, BPS_FAILURE with errno set otherwise.