toggle menu
korge-root
5.1.0
common
switch theme
search in API
korge-core
/
korlibs.audio.sound
/
DequeBasedPlatformAudioOutput
Deque
Based
Platform
Audio
Output
open
class
DequeBasedPlatformAudioOutput
(
val
coroutineContext
:
CoroutineContext
,
val
frequency
:
Int
)
:
PlatformAudioOutput
Inheritors
PlatformAudioOutputBasedOnNew
ThreadBasedPlatformAudioOutput
Members
Members & Extensions
Constructors
Deque
Based
Platform
Audio
Output
Link copied to clipboard
constructor
(
coroutineContext
:
CoroutineContext
,
frequency
:
Int
)
Types
Companion
Link copied to clipboard
object
Companion
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
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
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
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
(
)