toggle menu
RootEncoder
androidJvm
switch theme
search in API
encoder
/
com.pedro.encoder.input.sources.audio
/
AudioFileSource
Audio
File
Source
class
AudioFileSource
(
context
:
Context
,
path
:
Uri
,
loopMode
:
Boolean
=
true
,
onFinish
:
(
isLoop
:
Boolean
)
->
Unit
=
{}
)
:
AudioSource
Created by pedro on 12/1/24.
Members
Constructors
Audio
File
Source
Link copied to clipboard
constructor
(
context
:
Context
,
path
:
Uri
,
loopMode
:
Boolean
=
true
,
onFinish
:
(
isLoop
:
Boolean
)
->
Unit
=
{}
)
Properties
created
Link copied to clipboard
var
created
:
Boolean
echo
Canceler
Link copied to clipboard
var
echoCanceler
:
Boolean
is
Stereo
Link copied to clipboard
var
isStereo
:
Boolean
noise
Suppressor
Link copied to clipboard
var
noiseSuppressor
:
Boolean
sample
Rate
Link copied to clipboard
var
sampleRate
:
Int
Functions
get
Duration
Link copied to clipboard
fun
getDuration
(
)
:
Double
get
Time
Link copied to clipboard
fun
getTime
(
)
:
Double
init
Link copied to clipboard
fun
init
(
sampleRate
:
Int
,
isStereo
:
Boolean
,
echoCanceler
:
Boolean
,
noiseSuppressor
:
Boolean
)
:
Boolean
is
Audio
Device
Enabled
Link copied to clipboard
fun
isAudioDeviceEnabled
(
)
:
Boolean
is
Muted
Link copied to clipboard
fun
isMuted
(
)
:
Boolean
is
Running
Link copied to clipboard
open
override
fun
isRunning
(
)
:
Boolean
move
To
Link copied to clipboard
fun
moveTo
(
time
:
Double
)
mute
Link copied to clipboard
fun
mute
(
)
play
Audio
Device
Link copied to clipboard
fun
playAudioDevice
(
)
release
Link copied to clipboard
open
override
fun
release
(
)
replace
File
Link copied to clipboard
fun
replaceFile
(
context
:
Context
,
uri
:
Uri
)
set
Extractor
Link copied to clipboard
fun
setExtractor
(
extractor
:
Extractor
)
set
Loop
Mode
Link copied to clipboard
fun
setLoopMode
(
enabled
:
Boolean
)
start
Link copied to clipboard
open
override
fun
start
(
getMicrophoneData
:
GetMicrophoneData
)
stop
Link copied to clipboard
open
override
fun
stop
(
)
stop
Audio
Device
Link copied to clipboard
fun
stopAudioDevice
(
)
un
Mute
Link copied to clipboard
fun
unMute
(
)