toggle menu
korge-root
5.1.0
common
switch theme
search in API
korge-core
/
korlibs.audio.sound
/
PlatformAudioOutput
Platform
Audio
Output
open
class
PlatformAudioOutput
(
val
coroutineContext
:
CoroutineContext
,
val
frequency
:
Int
)
:
Disposable
,
SoundProps
Inheritors
DequeBasedPlatformAudioOutput
PlatformLogAudioOutput
Members
Members & Extensions
Constructors
Platform
Audio
Output
Link copied to clipboard
constructor
(
coroutineContext
:
CoroutineContext
,
frequency
:
Int
)
Properties
available
Samples
Link copied to clipboard
open
val
availableSamples
:
Int
=
0
coroutine
Context
Link copied to clipboard
val
coroutineContext
:
CoroutineContext
frequency
Link copied to clipboard
val
frequency
:
Int
panning
Link copied to clipboard
open
override
var
panning
:
Double
pitch
Link copied to clipboard
open
override
var
pitch
:
Double
volume
Link copied to clipboard
open
override
var
volume
:
Double
Functions
add
Link copied to clipboard
suspend
fun
add
(
data
:
AudioData
)
open
suspend
fun
add
(
samples
:
AudioSamples
,
offset
:
Int
=
0
,
size
:
Int
=
samples.totalSamples
)
apply
Props
To
Link copied to clipboard
fun
SoundProps
.
applyPropsTo
(
samples
:
AudioSamples
)
fun
SoundProps
.
applyPropsTo
(
samples
:
AudioSamplesInterleaved
)
copy
Sound
Props
From
Link copied to clipboard
fun
SoundProps
.
copySoundPropsFrom
(
other
:
ReadonlySoundProps
)
copy
Sound
Props
From
Combined
Link copied to clipboard
fun
SoundProps
.
copySoundPropsFromCombined
(
l
:
ReadonlySoundProps
,
r
:
ReadonlySoundProps
)
dispose
Link copied to clipboard
override
fun
dispose
(
)
start
Link copied to clipboard
open
fun
start
(
)
stop
Link copied to clipboard
open
fun
stop
(
)
volume
For
Channel
Link copied to clipboard
fun
SoundProps
.
volumeForChannel
(
channel
:
Int
)
:
Double
wait
Link copied to clipboard
open
suspend
fun
wait
(
)