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

Media Recorder Class for Arduino on Spresense. More...

#include <audio/audio_high_level_api.h>
#include <audio/audio_message_types.h>
#include <audio/utilities/frame_samples.h>
#include <audio/utilities/wav_containerformat.h>
#include <memutils/simple_fifo/CMN_SimpleFifo.h>
#include "FrontEnd.h"
Include dependency graph for MediaRecorder.h:

Go to the source code of this file.

Classes

class  MediaRecorder
 MediaRecorder Class Definitions. More...
 

Macros

#define MEDIARECORDER_LOG_DEBUG
 
#define print_err   printf
 
#define print_dbg(...)   printf(__VA_ARGS__)
 
#define MEDIARECORDER_ECODE_OK   0
 
#define MEDIARECORDER_ECODE_COMMAND_ERROR   1
 
#define MEDIARECORDER_ECODE_BUFFER_INIT_ERROR   2
 
#define MEDIARECORDER_ECODE_BUFFER_POLL_ERROR   3
 
#define MEDIARECORDER_ECODE_DSP_ACCESS_ERROR   4
 
#define MEDIARECORDER_ECODE_FILEACCESS_ERROR   5
 
#define MEDIARECORDER_ECODE_BUFFER_SIZE_ERROR   6
 
#define MEDIARECORDER_ECODE_BUFFER_AREA_ERROR   7
 
#define MEDIARECORDER_ECODE_INSUFFICIENT_BUFFER_AREA   8
 
#define MEDIARECORDER_ECODE_BASEBAND_ERROR   9
 
#define MEDIARECORDER_ECODE_BUFFER_ALLOC_ERROR   10
 
#define MEDIARECORDER_BUF_FRAME_NUM   10
 
#define MEDIARECORDER_BUF_FRAME_SIZE   (768 * 2 * 8)
 
#define MEDIARECORDER_BUF_SIZE   (MEDIARECORDER_BUF_FRAME_NUM * MEDIARECORDER_BUF_FRAME_SIZE)
 
#define MEDIARECORDER_CAPCLK_NORMAL   (0)
 
#define MEDIARECORDER_CAPCLK_HIRESO   (1)
 

Detailed Description

Media Recorder Class for Arduino on Spresense.

Author
Sony Semiconductor Solutions Corporation

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

  • Voice recording

Macro Definition Documentation

◆ MEDIARECORDER_LOG_DEBUG

#define MEDIARECORDER_LOG_DEBUG

MediaRecorder log output definition

◆ MEDIARECORDER_ECODE_OK

#define MEDIARECORDER_ECODE_OK   0

MediaRecorder Error Code Definitions.

◆ MEDIARECORDER_BUF_FRAME_NUM

#define MEDIARECORDER_BUF_FRAME_NUM   10

MediaRecorder buffer size definition.

◆ MEDIARECORDER_CAPCLK_NORMAL

#define MEDIARECORDER_CAPCLK_NORMAL   (0)

MediaRecorder capturing clock mode.