NUGU SDK Linux
1.7.6
|
PCM driver. More...
Classes | |
struct | nugu_pcm_driver_ops |
pcm driver operations More... | |
Typedefs | |
typedef struct _nugu_pcm_driver | NuguPcmDriver |
pcm driver object | |
Functions | |
NUGU_API NuguPcmDriver * | nugu_pcm_driver_find (const char *name) |
Find a driver by name in the driver list. More... | |
NUGU_API int | nugu_pcm_driver_free (NuguPcmDriver *driver) |
Destroy the pcm driver object. More... | |
NUGU_API NuguPcmDriver * | nugu_pcm_driver_get_default (void) |
Get the default pcm driver. More... | |
NUGU_API NuguPcmDriver * | nugu_pcm_driver_new (const char *name, struct nugu_pcm_driver_ops *ops) |
Create new pcm driver object. More... | |
NUGU_API int | nugu_pcm_driver_register (NuguPcmDriver *driver) |
Register the driver to driver list. More... | |
NUGU_API int | nugu_pcm_driver_remove (NuguPcmDriver *driver) |
Remove the driver from driver list. More... | |
NUGU_API int | nugu_pcm_driver_set_default (NuguPcmDriver *driver) |
Set the default pcm driver. More... | |
PCM driver.
Manage player drivers that can play PCM data.
NUGU_API NuguPcmDriver* nugu_pcm_driver_new | ( | const char * | name, |
struct nugu_pcm_driver_ops * | ops | ||
) |
Create new pcm driver object.
[in] | name | driver name |
[in] | ops | operation table |
NUGU_API int nugu_pcm_driver_free | ( | NuguPcmDriver * | driver | ) |
Destroy the pcm driver object.
[in] | driver | pcm driver |
0 | success |
-1 | failure |
NUGU_API int nugu_pcm_driver_register | ( | NuguPcmDriver * | driver | ) |
Register the driver to driver list.
[in] | driver | pcm driver |
0 | success |
-1 | failure |
NUGU_API int nugu_pcm_driver_remove | ( | NuguPcmDriver * | driver | ) |
Remove the driver from driver list.
[in] | driver | pcm driver |
0 | success |
-1 | failure |
NUGU_API int nugu_pcm_driver_set_default | ( | NuguPcmDriver * | driver | ) |
Set the default pcm driver.
[in] | driver | pcm driver |
0 | success |
-1 | failure |
NUGU_API NuguPcmDriver* nugu_pcm_driver_get_default | ( | void | ) |
NUGU_API NuguPcmDriver* nugu_pcm_driver_find | ( | const char * | name | ) |
Find a driver by name in the driver list.
[in] | name | pcm driver name |