NUGU SDK Linux
1.7.6
|
Audio recorder driver. More...
Classes | |
struct | nugu_recorder_driver_ops |
Typedefs | |
typedef struct _nugu_recorder_driver | NuguRecorderDriver |
recorder driver object | |
Functions | |
NUGU_API NuguRecorderDriver * | nugu_recorder_driver_find (const char *name) |
Find a driver by name in the driver list. More... | |
NUGU_API int | nugu_recorder_driver_free (NuguRecorderDriver *driver) |
Destroy the recorder driver object. More... | |
NUGU_API NuguRecorderDriver * | nugu_recorder_driver_get_default (void) |
Get the default recorder driver. More... | |
NUGU_API NuguRecorderDriver * | nugu_recorder_driver_new (const char *name, struct nugu_recorder_driver_ops *ops) |
Create new recorder driver object. More... | |
NUGU_API int | nugu_recorder_driver_register (NuguRecorderDriver *driver) |
Register the driver to driver list. More... | |
NUGU_API int | nugu_recorder_driver_remove (NuguRecorderDriver *driver) |
Remove the driver from driver list. More... | |
NUGU_API int | nugu_recorder_driver_set_default (NuguRecorderDriver *driver) |
Set the default recorder driver. More... | |
Audio recorder driver.
The recorder driver must support the ability to record in multiples according to the Audio property (frame, samplerate, channel).
NUGU_API NuguRecorderDriver* nugu_recorder_driver_new | ( | const char * | name, |
struct nugu_recorder_driver_ops * | ops | ||
) |
Create new recorder driver object.
[in] | name | driver name |
[in] | ops | operation table |
NUGU_API int nugu_recorder_driver_free | ( | NuguRecorderDriver * | driver | ) |
Destroy the recorder driver object.
[in] | driver | recorder driver |
0 | success |
-1 | failure |
NUGU_API int nugu_recorder_driver_register | ( | NuguRecorderDriver * | driver | ) |
Register the driver to driver list.
[in] | driver | recorder driver |
0 | success |
-1 | failure |
NUGU_API int nugu_recorder_driver_remove | ( | NuguRecorderDriver * | driver | ) |
Remove the driver from driver list.
[in] | driver | recorder driver |
0 | success |
-1 | failure |
NUGU_API int nugu_recorder_driver_set_default | ( | NuguRecorderDriver * | driver | ) |
Set the default recorder driver.
[in] | driver | recorder driver |
0 | success |
-1 | failure |
NUGU_API NuguRecorderDriver* nugu_recorder_driver_get_default | ( | void | ) |
NUGU_API NuguRecorderDriver* nugu_recorder_driver_find | ( | const char * | name | ) |
Find a driver by name in the driver list.
[in] | name | recorder driver name |