Arduino ESpeak-NG
Public Member Functions | Data Fields
audio_object Struct Reference

pcaudiolib implementation for microcontrollers using the arduino Print assigned by espeak_set_audio_output() as output More...

#include <audio_object.h>

Public Member Functions

int open (enum audio_object_format format, uint32_t rate, uint8_t channels)
 
void close ()
 
int write (const void *data, size_t bytes)
 
int drain ()
 
int flush ()
 
const char * strerror (int error)
 

Data Fields

enum audio_object_format format
 
uint32_t rate
 
uint8_t channels
 
const char * device
 
const char * application_name
 
Print * p_out_stream = nullptr
 
audio_info cfg
 
bool active = false
 

Detailed Description

pcaudiolib implementation for microcontrollers using the arduino Print assigned by espeak_set_audio_output() as output

Author
pschatzmann

Member Function Documentation

◆ close()

void audio_object::close ( )
inline

◆ drain()

int audio_object::drain ( )
inline

◆ flush()

int audio_object::flush ( )
inline

◆ open()

int audio_object::open ( enum audio_object_format  format,
uint32_t  rate,
uint8_t  channels 
)
inline

◆ strerror()

const char* audio_object::strerror ( int  error)
inline

◆ write()

int audio_object::write ( const void *  data,
size_t  bytes 
)
inline

Field Documentation

◆ active

bool audio_object::active = false

◆ application_name

const char* audio_object::application_name

◆ cfg

audio_info audio_object::cfg

◆ channels

uint8_t audio_object::channels

◆ device

const char* audio_object::device

◆ format

enum audio_object_format audio_object::format

◆ p_out_stream

Print* audio_object::p_out_stream = nullptr

◆ rate

uint32_t audio_object::rate

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