toggle menu
korge-root
5.1.0
common
switch theme
search in API
korge-core
/
korlibs.audio.sound
/
ThreadBasedPlatformAudioOutput
Thread
Based
Platform
Audio
Output
abstract
class
ThreadBasedPlatformAudioOutput
(
val
coroutineContext
:
CoroutineContext
,
val
frequency
:
Int
)
:
DequeBasedPlatformAudioOutput
Members
Members & Extensions
Constructors
Thread
Based
Platform
Audio
Output
Link copied to clipboard
constructor
(
coroutineContext
:
CoroutineContext
,
frequency
:
Int
)
Properties
available
Samples
Link copied to clipboard
open
override
val
availableSamples
:
Int
coroutine
Context
Link copied to clipboard
val
coroutineContext
:
CoroutineContext
frequency
Link copied to clipboard
val
frequency
:
Int
native
Thread
Link copied to clipboard
var
nativeThread
:
NativeThread
?
panning
Link copied to clipboard
open
override
var
panning
:
Double
pitch
Link copied to clipboard
open
override
var
pitch
:
Double
running
Link copied to clipboard
var
running
:
Boolean
total
Pending
Samples
Link copied to clipboard
val
totalPendingSamples
:
Long
volume
Link copied to clipboard
open
override
var
volume
:
Double
volumes
Link copied to clipboard
var
volumes
:
FloatArray
Functions
add
Link copied to clipboard
suspend override
fun
add
(
samples
:
AudioSamples
,
offset
:
Int
,
size
:
Int
)
suspend
fun
add
(
data
:
AudioData
)
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
override
fun
start
(
)
stop
Link copied to clipboard
override
fun
stop
(
)
volume
For
Channel
Link copied to clipboard
fun
SoundProps
.
volumeForChannel
(
channel
:
Int
)
:
Double
wait
Link copied to clipboard
suspend override
fun
wait
(
)