EMIPLIB
Public Member Functions

MIPAudioTrackOutput Class Reference

Component which uses the AudioTrack class available on the Android platform to play back audio. More...

#include <mipaudiotrackoutput.h>

Inheritance diagram for MIPAudioTrackOutput:
Inheritance graph
[legend]
Collaboration diagram for MIPAudioTrackOutput:
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 output component.
bool close ()
 Closes the output component.

Detailed Description

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.


Member Function Documentation

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

Opens the output 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 play back 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: