MicrophoneSourceFactory

class MicrophoneSourceFactory(val audioSource: Int = MediaRecorder.AudioSource.CAMCORDER, effects: Set<UUID> = defaultAudioEffects) : AudioRecordSourceFactory(source)

A factory to create a MicrophoneSource.

Parameters

audioSource

the audio source to use (e.g., MediaRecorder.AudioSource.MIC)

effects

a set of audio effects to apply to the audio source

Constructors

Link copied to clipboard
constructor(audioSource: Int = MediaRecorder.AudioSource.CAMCORDER, effects: Set<UUID> = defaultAudioEffects)

Properties

Link copied to clipboard
Link copied to clipboard
protected val effects: Set<UUID>

Functions

Link copied to clipboard
open suspend override fun create(context: Context): IAudioSourceInternal

Creates an IAudioSourceInternal instance.

Link copied to clipboard
open override fun isSourceEquals(source: IAudioSourceInternal?): Boolean

Whether the source that will be created by create is equal to another source.

Link copied to clipboard
open override fun toString(): String