audiodevice_get()

Get the current audio device and path.

Synopsis:

#include <bps/audiodevice.h>
 
BPS_API int audiodevice_get(audiodevice_device_t *device, char **path)

Arguments:

device
This will be populated with the current audio device.
path
This will be populated with the current audio device's path. Upon success, the caller is responsible for freeing this buffer using bps_free().

Library:

libbps

Description:

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.

Returns:

BPS_SUCCESS upon success, BPS_FAILURE with errno set otherwise.