Package com.sinch.android.rtc
Interface LocalAudioListener
-
public interface LocalAudioListener
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
onAudioBuffer(int audioSource, int bytesRead, java.nio.ByteBuffer byteBuffer)
Called when a new audio buffer is available from the local audio recorder.void
onAudioRecordingStarted(int audioSource, int sampleRate, int channels, int audioFormat)
Called when a audio recording is stopped.void
onAudioRecordingStopped(int audioSource)
Called when a audio recording is stopped.
-
-
-
Method Detail
-
onAudioRecordingStarted
void onAudioRecordingStarted(int audioSource, int sampleRate, int channels, int 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. android.media.AudioFormat.ENCODING_PCM_16BIT = 2 etc.).
-
onAudioRecordingStopped
void onAudioRecordingStopped(int audioSource)
Called when a audio recording is stopped.- Parameters:
audioSource
- The audio source for the audio recorder.
-
onAudioBuffer
void onAudioBuffer(int audioSource, int bytesRead, java.nio.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.
-
-