Developer World
Spresense Arduino Library v3.3.0-b2e6327
Audio.h File Reference

Audio Library Class for Arduino on Spresense. More...

#include <pins_arduino.h>
#include <audio/audio_high_level_api.h>
#include <audio/utilities/wav_containerformat.h>
#include <audio/utilities/wav_containerformat_parser.h>
#include <audio/utilities/frame_samples.h>
#include <memutils/simple_fifo/CMN_SimpleFifo.h>
Include dependency graph for Audio.h:

Go to the source code of this file.

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

Audio Library Class for Arduino on Spresense.

Author
Sony Semiconductor Solutions Corporation

By using this library, you can use the follow features on SPRESSENSE.

  • Music playback
  • Voice recording