public interface IAudioSource extends IInvocable
IAudioSource
- audio source. It is responsible for PCM data capture.Modifier and Type | Interface and Description |
---|---|
static interface |
IAudioSource.IListener
IListener - audio source listener. |
IInvocable.Method
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getName() |
AudioTrackInfo |
getTrackInfo() |
boolean |
isStarted()
Checks if audio source is started.
|
void |
start(AudioTrackInfo audioTrackInfo,
int audioFrameLength,
IAudioSource.IListener listener)
Opens and starts audio source stream.
|
void |
stop()
Stops and closes audio source.
|
invoke
java.lang.String getName()
AudioTrackInfo getTrackInfo()
null
if source is not started yetboolean isStarted()
true
if source is runningvoid start(AudioTrackInfo audioTrackInfo, int audioFrameLength, IAudioSource.IListener listener) throws java.lang.Exception
Note:
- The source can choose other track format to use
audioTrackInfo
- audio track format to useaudioFrameLength
- audio frame lengthlistener
- source listenerjava.lang.Exception
- if an exception occurredvoid stop() throws java.lang.Exception
java.lang.Exception
- if an exception occurred