-
- All Implemented Interfaces:
public interface LocalAudioListener
-
-
Method Summary
Modifier and Type Method Description abstract UnitonAudioRecordingStarted(Integer audioSource, Integer sampleRate, Integer channels, Integer audioFormat)Called when a audio recording is stopped. abstract UnitonAudioRecordingStopped(Integer audioSource)Called when a audio recording is stopped. abstract UnitonAudioBuffer(Integer audioSource, Integer bytesRead, ByteBuffer byteBuffer)Called when a new audio buffer is available from the local audio recorder. -
-
Method Detail
-
onAudioRecordingStarted
abstract Unit onAudioRecordingStarted(Integer audioSource, Integer sampleRate, Integer channels, Integer audioFormat)
Called when a audio recording is stopped.
- Parameters:
audioSource- The audio source for the audio recorder.sampleRate- Sample rate of the started recording.channels- Channels for the started recording.audioFormat- Audio format as defined in android.media.AudioFormat (e.g.
-
onAudioRecordingStopped
abstract Unit onAudioRecordingStopped(Integer audioSource)
Called when a audio recording is stopped.
- Parameters:
audioSource- The audio source for the audio recorder.
-
onAudioBuffer
abstract Unit onAudioBuffer(Integer audioSource, Integer bytesRead, ByteBuffer byteBuffer)
Called when a new audio buffer is available from the local audio recorder.
- Parameters:
audioSource- The audio source for the audio recorder.bytesRead- number of bytes read into the buffer.byteBuffer- buffer with the read bytes.
-
-
-
-