Developer World
Spresense SDK Library v3.3.0-375c679
audiolite_driver Class Reference
Collaboration diagram for audiolite_driver:

Public Member Functions

 audiolite_driver (int mode, const char *devpath, const char *mqpath, int maxch)
 
void set_listener (audiolite_drvlistener *l)
 
int set_volume (int vol)
 
int enqueue_buffer (FAR struct ap_buffer_s *apb)
 
int start (int fs, int bps, int chnum)
 
int stop (void)
 
int pause (void)
 
int resume (void)
 
void reset (void)
 

Static Public Member Functions

static void * message_thread (void *arg)
 

Protected Member Functions

void cleanup_messageq ()
 
int update_audioparam ()
 
int stop_thread (void)
 
int setup_driver ()
 
int set_volume_nolock (int vol)
 
int single_ioctl (int ioc)
 
int set_audioparam (int fs, int bps, int chnum)
 

Protected Attributes

int _fd
 
int _mode
 
int _volume
 
mqd_t _mq
 
mossfw_thread_t _tid
 
audiolite_drvlistener_listener
 
mossfw_lock_t _lock
 
int _fs
 
int _bps
 
int _chnum
 
int _maxch
 
const char * _devpath
 
const char * _mqpath
 
int _is_started
 

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