# AudioDecoder

open class AudioDecoder : BaseDecoder

Created by pedro on 20/06/17.

## Constructors

AudioDecoder
Link copied to clipboard
constructor(getMicrophoneData: GetMicrophoneData, audioDecoderInterface: AudioDecoderInterface, decoderInterface: DecoderInterface)

## Properties

extractor
Link copied to clipboard
open var extractor: Extractor
isStereo
Link copied to clipboard
open val isStereo: Boolean
sampleRate
Link copied to clipboard
open val sampleRate: Int
size
Link copied to clipboard
open val size: Int

## Functions

getDuration
Link copied to clipboard
open fun getDuration(): Double
getTime
Link copied to clipboard
open fun getTime(): Double
initExtractor
Link copied to clipboard
open fun initExtractor(fileDescriptor: FileDescriptor): Boolean
open fun initExtractor(filePath: String): Boolean
open fun initExtractor(context: Context, uri: Uri): Boolean
isLoopMode
Link copied to clipboard
open fun isLoopMode(): Boolean
isMuted
Link copied to clipboard
open fun isMuted(): Boolean
isRunning
Link copied to clipboard
open fun isRunning(): Boolean
moveTo
Link copied to clipboard
open fun moveTo(time: Double)
mute
Link copied to clipboard
open fun mute()
prepareAudio
Link copied to clipboard
open fun prepareAudio(): Boolean
reset
Link copied to clipboard
open fun reset(surface: Surface)
setCodecErrorCallback
Link copied to clipboard
open fun setCodecErrorCallback(codecErrorCallback: CodecErrorCallback)
setGetMicrophoneData
Link copied to clipboard
open fun setGetMicrophoneData(getMicrophoneData: GetMicrophoneData)
setLoopMode
Link copied to clipboard
open fun setLoopMode(loopMode: Boolean)
start
Link copied to clipboard
open fun start()
stop
Link copied to clipboard
open fun stop()
unMute
Link copied to clipboard
open fun unMute()