Group PJMED_AUDDEV_ALSA
- group PJMED_AUDDEV_ALSA
ALSA specific Audio Device API.
This section describes specific functions for ALSA audio devices. Application can use Audio Device API Reference API to manipulate the ALSA audio device.
Functions
-
pj_status_t pjmedia_aud_alsa_set_devices(pjmedia_aud_dev_factory *af, unsigned count, const char *names[])
Manually set ALSA devices. This function will remove all devices registered in the factory and register the specified devices.
Note that by default the library will automatically try to enumerate and register the ALSA devices during factory initialization. Application can override the registered devices using this function.
If application wish to let the library do the device enumeration again, just call this function with zero device, i.e: count is set to zero.
- Parameters:
af – The ALSA factory, or NULL to use the default.
count – The number of ALSA device names.
names – The ALSA device names to be registered.
- Returns:
PJ_SUCCESS on success.
-
pj_status_t pjmedia_aud_alsa_set_devices(pjmedia_aud_dev_factory *af, unsigned count, const char *names[])