EMIPLIB
Public Member Functions

MIPAudioRecorderInput Class Reference

A component which uses the AudioRecord class available on the Android platform to capture audio. More...

#include <mipaudiorecorderinput.h>

Inheritance diagram for MIPAudioRecorderInput:
Inheritance graph
[legend]
Collaboration diagram for MIPAudioRecorderInput:
Collaboration graph
[legend]

List of all members.

Public Member Functions

bool open (int sampRate, int channels, MIPTime interval=MIPTime(0.020), MIPTime arrayTime=MIPTime(10.0))
 Opens the input component.
bool close ()
 Closes the input component.

Detailed Description

This component uses the AudioRecord class available on the Android platform to capture audio. It should be placed at the start of a chain and produces raw signed 16 bit audio messages, using native byte ordering.


Member Function Documentation

bool MIPAudioRecorderInput::close ( )
bool MIPAudioRecorderInput::open ( int  sampRate,
int  channels,
MIPTime  interval = MIPTime(0.020),
MIPTime  arrayTime = MIPTime(10.0) 
)

Opens the input component.

Parameters:
sampRateThe sampling rate (e.g. 8000, 22050, 44100, ...)
channelsThe number of channels (e.g. 1 for mono, 2 for stereo)
intervalThis interval is used to capture audio.
arrayTimeSize of the internal buffer used to temporarily store audio in, expressed as a time interval. Note that this is not the amount of delay introduced by the component.

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