NUGU SDK Linux  1.7.6
Audio recorder driver

Audio recorder driver. More...

+ Collaboration diagram for Audio recorder driver:

Classes

struct  nugu_recorder_driver_ops
 

Typedefs

typedef struct _nugu_recorder_driver NuguRecorderDriver
 recorder driver object
 

Functions

NUGU_API NuguRecorderDrivernugu_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 NuguRecorderDrivernugu_recorder_driver_get_default (void)
 Get the default recorder driver. More...
 
NUGU_API NuguRecorderDrivernugu_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...
 

Detailed Description

Audio recorder driver.

The recorder driver must support the ability to record in multiples according to the Audio property (frame, samplerate, channel).

Function Documentation

◆ nugu_recorder_driver_new()

NUGU_API NuguRecorderDriver* nugu_recorder_driver_new ( const char *  name,
struct nugu_recorder_driver_ops ops 
)

Create new recorder driver object.

Parameters
[in]namedriver name
[in]opsoperation table
Returns
recorder driver object
See also
nugu_recorder_driver_free()

◆ nugu_recorder_driver_free()

NUGU_API int nugu_recorder_driver_free ( NuguRecorderDriver driver)

Destroy the recorder driver object.

Parameters
[in]driverrecorder driver
Returns
result
Return values
0success
-1failure
See also
nugu_recorder_driver_new()

◆ nugu_recorder_driver_register()

NUGU_API int nugu_recorder_driver_register ( NuguRecorderDriver driver)

Register the driver to driver list.

Parameters
[in]driverrecorder driver
Returns
result
Return values
0success
-1failure
See also
nugu_recorder_driver_remove()

◆ nugu_recorder_driver_remove()

NUGU_API int nugu_recorder_driver_remove ( NuguRecorderDriver driver)

Remove the driver from driver list.

Parameters
[in]driverrecorder driver
Returns
result
Return values
0success
-1failure
See also
nugu_recorder_driver_register()

◆ nugu_recorder_driver_set_default()

NUGU_API int nugu_recorder_driver_set_default ( NuguRecorderDriver driver)

Set the default recorder driver.

Parameters
[in]driverrecorder driver
Returns
result
Return values
0success
-1failure
See also
nugu_recorder_driver_get_default()

◆ nugu_recorder_driver_get_default()

NUGU_API NuguRecorderDriver* nugu_recorder_driver_get_default ( void  )

Get the default recorder driver.

Returns
recorder driver
See also
nugu_recorder_driver_set_default()

◆ nugu_recorder_driver_find()

NUGU_API NuguRecorderDriver* nugu_recorder_driver_find ( const char *  name)

Find a driver by name in the driver list.

Parameters
[in]namerecorder driver name
Returns
recorder driver