EMIPLIB
|
Component which uses the AudioTrack class available on the Android platform to play back audio. More...
#include <mipaudiotrackoutput.h>
Public Member Functions | |
bool | open (int sampRate, int channels, MIPTime interval=MIPTime(0.020), MIPTime arrayTime=MIPTime(10.0)) |
Opens the output component. | |
bool | close () |
Closes the output component. |
This component uses the AudioTrack class available on the Android platform to play back audio. It accepts raw signed 16 bit audio messages, using native byte ordering. No output messages are produced.
bool MIPAudioTrackOutput::close | ( | ) |
bool MIPAudioTrackOutput::open | ( | int | sampRate, |
int | channels, | ||
MIPTime | interval = MIPTime(0.020) , |
||
MIPTime | arrayTime = MIPTime(10.0) |
||
) |
Opens the output 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 play back 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. |