# Media3AudioSource

class Media3AudioSource(context: Context, path: Uri, speed: Float = 1.0f, loopMode: Boolean = true, onFinish: (isLoop: Boolean) -> Unit = {}) : AudioSource

## Constructors

Media3AudioSource
Link copied to clipboard
constructor(context: Context, path: Uri, speed: Float = 1.0f, loopMode: Boolean = true, onFinish: (isLoop: Boolean) -> Unit = {})

## Properties

created
Link copied to clipboard
var created: Boolean
echoCanceler
Link copied to clipboard
var echoCanceler: Boolean
isStereo
Link copied to clipboard
var isStereo: Boolean
noiseSuppressor
Link copied to clipboard
var noiseSuppressor: Boolean
sampleRate
Link copied to clipboard
var sampleRate: Int

## Functions

getPlayer
Link copied to clipboard
fun getPlayer(): ExoPlayer?
init
Link copied to clipboard
fun init(sampleRate: Int, isStereo: Boolean, echoCanceler: Boolean, noiseSuppressor: Boolean): Boolean
isRunning
Link copied to clipboard
open override fun isRunning(): Boolean
release
Link copied to clipboard
open override fun release()
start
Link copied to clipboard
open override fun start(getMicrophoneData: GetMicrophoneData)
stop
Link copied to clipboard
open override fun stop()