NUGU SDK Linux  1.7.6
PCM driver

PCM driver. More...

+ Collaboration diagram for PCM driver:

Classes

struct  nugu_pcm_driver_ops
 pcm driver operations More...
 

Typedefs

typedef struct _nugu_pcm_driver NuguPcmDriver
 pcm driver object
 

Functions

NUGU_API NuguPcmDrivernugu_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 NuguPcmDrivernugu_pcm_driver_get_default (void)
 Get the default pcm driver. More...
 
NUGU_API NuguPcmDrivernugu_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...
 

Detailed Description

PCM driver.

Manage player drivers that can play PCM data.

Function Documentation

◆ nugu_pcm_driver_new()

NUGU_API NuguPcmDriver* nugu_pcm_driver_new ( const char *  name,
struct nugu_pcm_driver_ops ops 
)

Create new pcm driver object.

Parameters
[in]namedriver name
[in]opsoperation table
Returns
pcm driver object
See also
nugu_pcm_driver_free()

◆ nugu_pcm_driver_free()

NUGU_API int nugu_pcm_driver_free ( NuguPcmDriver driver)

Destroy the pcm driver object.

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

◆ nugu_pcm_driver_register()

NUGU_API int nugu_pcm_driver_register ( NuguPcmDriver driver)

Register the driver to driver list.

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

◆ nugu_pcm_driver_remove()

NUGU_API int nugu_pcm_driver_remove ( NuguPcmDriver driver)

Remove the driver from driver list.

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

◆ nugu_pcm_driver_set_default()

NUGU_API int nugu_pcm_driver_set_default ( NuguPcmDriver driver)

Set the default pcm driver.

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

◆ nugu_pcm_driver_get_default()

NUGU_API NuguPcmDriver* nugu_pcm_driver_get_default ( void  )

Get the default pcm driver.

Returns
pcm driver
See also
nugu_pcm_driver_set_default()

◆ nugu_pcm_driver_find()

NUGU_API NuguPcmDriver* nugu_pcm_driver_find ( const char *  name)

Find a driver by name in the driver list.

Parameters
[in]namepcm driver name
Returns
pcm driver