|
EMIPLIB
|
A component which uses the AudioRecord class available on the Android platform to capture audio. More...
#include <mipaudiorecorderinput.h>


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. | |
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.
| bool MIPAudioRecorderInput::close | ( | ) |
| bool MIPAudioRecorderInput::open | ( | int | sampRate, |
| int | channels, | ||
| MIPTime | interval = MIPTime(0.020), |
||
| MIPTime | arrayTime = MIPTime(10.0) |
||
| ) |
Opens the input component.
| sampRate | The sampling rate (e.g. 8000, 22050, 44100, ...) |
| channels | The number of channels (e.g. 1 for mono, 2 for stereo) |
| interval | This interval is used to capture audio. |
| arrayTime | Size 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. |
1.7.3