Klassen | |
class | Listener |
Öffentliche Methoden | |
AudioReader () | |
void | startReader (int rate, int block, Listener listener) |
void | stopReader () |
A class which reads audio input from the mic in a background thread and passes it to the caller when ready.
To use this class, your application must have permission RECORD_AUDIO.
org.hermit.android.io.AudioReader.AudioReader | ( | ) |
Create an AudioReader instance.
void org.hermit.android.io.AudioReader.startReader | ( | int | rate, | |
int | block, | |||
Listener | listener | |||
) |
Start this reader.
rate | The audio sampling rate, in samples / sec. | |
block | Number of samples of input to read at a time. This is different from the system audio buffer size. | |
listener | Listener to be notified on each completed read. |
void org.hermit.android.io.AudioReader.stopReader | ( | ) |
Stop this reader.