Developer World
Spresense Arduino Library v2.2.0-1e6eb73
Audio Library API

API for using Audio. More...

Classes

class  AudioClass
 Audio Library Class Definitions. More...
 

Macros

#define WRITE_FIFO_FRAME_NUM   (8)
 
#define WRITE_FIFO_FRAME_SIZE   (1024*2*3)
 
#define WRITE_BUF_SIZE   (WRITE_FIFO_FRAME_NUM * WRITE_FIFO_FRAME_SIZE)
 
#define READ_FIFO_FRAME_NUM   (10)
 
#define READ_FIFO_FRAME_SIZE   (1024*2*8)
 
#define READ_BUF_SIZE   (READ_FIFO_FRAME_NUM * READ_FIFO_FRAME_SIZE)
 
#define FIFO_FRAME_SIZE
 
#define SIMPLE_FIFO_BUF_SIZE
 
#define print_err   printf
 
#define print_dbg(x...)
 
#define AS_CODECTYPE_PCM   5
 
#define AUDIOLIB_ECODE_OK   0
 
#define AUDIOLIB_ECODE_SHARED_MEMORY_ERROR   1
 
#define AUDIOLIB_ECODE_SIMPLEFIFO_ERROR   2
 
#define AUDIOLIB_ECODE_AUDIOCOMMAND_ERROR   3
 
#define AUDIOLIB_ECODE_FILEACCESS_ERROR   4
 
#define AUDIOLIB_ECODE_FILEEND   5
 
#define AUDIOLIB_ECODE_BUFFER_AREA_ERROR   6
 
#define AUDIOLIB_ECODE_BUFFER_SIZE_ERROR   7
 
#define AUDIOLIB_ECODE_INSUFFICIENT_BUFFER_AREA   8
 
#define AUDIOLIB_ECODE_WAV_PARSE_ERROR   9
 
#define AUDIOLIB_ECODE_PARAMETER_ERROR   10
 

Typedefs

typedef unsigned int err_t
 

Functions

void outputDeviceCallback (uint32_t)
 

Variables

AudioClass Audio
 

Detailed Description

API for using Audio.

Macro Definition Documentation

◆ FIFO_FRAME_SIZE

#define FIFO_FRAME_SIZE
Value:
(\
(WRITE_BUF_SIZE > READ_BUF_SIZE) ?\
(WRITE_FIFO_FRAME_SIZE) : (READ_FIFO_FRAME_SIZE)\
)

◆ SIMPLE_FIFO_BUF_SIZE

#define SIMPLE_FIFO_BUF_SIZE
Value:
(\
((WRITE_BUF_SIZE) > (READ_BUF_SIZE)) ? \
(WRITE_BUF_SIZE) : (READ_BUF_SIZE)\
)

◆ AUDIOLIB_ECODE_OK

#define AUDIOLIB_ECODE_OK   0

Audio Library Error Code Definitions.Execution result OK

Typedef Documentation

◆ err_t

typedef unsigned int err_t

Audio Library Type Definitions.