# Package-level declarations

## Types

AudioFileSource
Link copied to clipboard
class AudioFileSource(context: Context, path: Uri, loopMode: Boolean = true, onFinish: (isLoop: Boolean) -> Unit = {}) : AudioSource

Created by pedro on 12/1/24.

AudioSource
Link copied to clipboard
abstract class AudioSource

Created by pedro on 11/1/24.

InternalAudioSource
Link copied to clipboard
@RequiresApi(value = 29)
class InternalAudioSource(mediaProjection: MediaProjection, mediaProjectionCallback: MediaProjection.Callback? = null) : AudioSource, GetMicrophoneData
InternalSource
Link copied to clipboard
typealias InternalSource = InternalAudioSource

Created by pedro on 12/1/24.

MicrophoneSource
Link copied to clipboard
class MicrophoneSource(var audioSource: Int = MediaRecorder.AudioSource.DEFAULT) : AudioSource, GetMicrophoneData

Created by pedro on 12/1/24.

MixAudioSource
Link copied to clipboard
@RequiresApi(value = 29)
class MixAudioSource(mediaProjection: MediaProjection, mediaProjectionCallback: MediaProjection.Callback? = null, microphoneAudioSource: Int = MediaRecorder.AudioSource.DEFAULT) : AudioSource, GetMicrophoneData

Mix microphone and internal audio sources in one source to allow send both at the same time. NOTES: Recommended configure prepareAudio with: echoCanceler = true, noiseSuppressor = true This is to avoid echo in microphone track.

NoAudioSource
Link copied to clipboard
@RequiresApi(value = 21)
class NoAudioSource : AudioSource

Created by pedro on 11/1/24.

SilenceAudioSource
Link copied to clipboard
class SilenceAudioSource : AudioSource, GetMicrophoneData

Created by pedro on 25/7/25.