toggle menu
korge-root
5.1.0
common
switch theme
search in API
korge
/
korlibs.korge.audio
/
AudioChannel
Audio
Channel
class
AudioChannel
(
val
name
:
String
,
val
viewsContainer
:
ViewsContainer
,
val
isLocal
:
Boolean
=
false
)
Members
Constructors
Audio
Channel
Link copied to clipboard
constructor
(
name
:
String
,
viewsContainer
:
ViewsContainer
,
isLocal
:
Boolean
=
false
)
Types
Provider
Link copied to clipboard
interface
Provider
Provider
Global
Link copied to clipboard
object
ProviderGlobal
:
AudioChannel.Provider
Provider
Local
Link copied to clipboard
object
ProviderLocal
:
AudioChannel.Provider
Properties
is
Local
Link copied to clipboard
val
isLocal
:
Boolean
=
false
name
Link copied to clipboard
val
name
:
String
views
Link copied to clipboard
val
views
:
Views
views
Container
Link copied to clipboard
val
viewsContainer
:
ViewsContainer
Functions
fade
In
Link copied to clipboard
suspend
fun
fadeIn
(
time
:
TimeSpan
=
DEFAULT_FADE_TIME
,
easing
:
Easing
=
DEFAULT_FADE_EASING
)
fade
Out
Link copied to clipboard
suspend
fun
fadeOut
(
time
:
TimeSpan
=
DEFAULT_FADE_TIME
,
easing
:
Easing
=
DEFAULT_FADE_EASING
)
play
Link copied to clipboard
fun
play
(
sound
:
Sound
,
params
:
PlaybackParameters
=
PlaybackParameters.DEFAULT
)
stop
Link copied to clipboard
fun
stop
(
)