NUGU SDK Linux  1.7.6
nugu_pcm_driver_ops Struct Reference

pcm driver operations More...

#include <nugu_pcm.h>

Public Attributes

int(* create )(NuguPcmDriver *driver, NuguPcm *pcm, NuguAudioProperty property)
 Called when pcm is created. More...
 
void(* destroy )(NuguPcmDriver *driver, NuguPcm *pcm)
 Called when pcm is destroyed. More...
 
int(* get_position )(NuguPcmDriver *driver, NuguPcm *pcm)
 Called when a playback position is requested. More...
 
int(* pause )(NuguPcmDriver *driver, NuguPcm *pcm)
 Called when pcm is paused. More...
 
int(* push_data )(NuguPcmDriver *driver, NuguPcm *pcm, const char *data, size_t size, int is_last)
 Called when a pcm data is pushed to pcm object. More...
 
int(* resume )(NuguPcmDriver *driver, NuguPcm *pcm)
 called when pcm is resumed More...
 
int(* set_volume )(NuguPcmDriver *driver, NuguPcm *pcm, int volume)
 called when pcm is needed to set volume More...
 
int(* start )(NuguPcmDriver *driver, NuguPcm *pcm)
 Called when pcm is started. More...
 
int(* stop )(NuguPcmDriver *driver, NuguPcm *pcm)
 Called when pcm is stopped. More...
 

Detailed Description

pcm driver operations

See also
nugu_pcm_driver_new()

Member Data Documentation

◆ create

int(* nugu_pcm_driver_ops::create) (NuguPcmDriver *driver, NuguPcm *pcm, NuguAudioProperty property)

Called when pcm is created.

See also
nugu_pcm_new()

◆ destroy

void(* nugu_pcm_driver_ops::destroy) (NuguPcmDriver *driver, NuguPcm *pcm)

Called when pcm is destroyed.

See also
nugu_pcm_free()

◆ start

int(* nugu_pcm_driver_ops::start) (NuguPcmDriver *driver, NuguPcm *pcm)

Called when pcm is started.

See also
nugu_pcm_start()

◆ push_data

int(* nugu_pcm_driver_ops::push_data) (NuguPcmDriver *driver, NuguPcm *pcm, const char *data, size_t size, int is_last)

Called when a pcm data is pushed to pcm object.

See also
nugu_pcm_push_data()

◆ stop

int(* nugu_pcm_driver_ops::stop) (NuguPcmDriver *driver, NuguPcm *pcm)

Called when pcm is stopped.

See also
nugu_pcm_stop()

◆ pause

int(* nugu_pcm_driver_ops::pause) (NuguPcmDriver *driver, NuguPcm *pcm)

Called when pcm is paused.

See also
nugu_pcm_pause()

◆ resume

int(* nugu_pcm_driver_ops::resume) (NuguPcmDriver *driver, NuguPcm *pcm)

called when pcm is resumed

See also
nugu_pcm_resume()

◆ set_volume

int(* nugu_pcm_driver_ops::set_volume) (NuguPcmDriver *driver, NuguPcm *pcm, int volume)

called when pcm is needed to set volume

See also
nugu_pcm_resume()

◆ get_position

int(* nugu_pcm_driver_ops::get_position) (NuguPcmDriver *driver, NuguPcm *pcm)

Called when a playback position is requested.

See also
nugu_pcm_get_position()

The documentation for this struct was generated from the following file: