OpenALAudioClip

class OpenALAudioClip(context: OpenALAudioContext, pcm: ByteArray, val channels: Int, val sampleRate: Int) : AudioClip

Author

Colton Daily

Constructors

Link copied to clipboard
fun OpenALAudioClip(context: OpenALAudioContext, pcm: ByteArray, channels: Int, sampleRate: Int)

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
open override fun dispose()
Link copied to clipboard
open override fun pause()

Pause the current audio clip.

Link copied to clipboard
open override fun play(volume: Float, loop: Boolean)

Play this audio clip.

Link copied to clipboard
open override fun resume()

Resumes the current audio from the position it was paused in.

Link copied to clipboard
open override fun stop()

Stops the audio from playing.

Properties

Link copied to clipboard
Link copied to clipboard
open override val duration: Duration

The duration of audio.

Link copied to clipboard
Link copied to clipboard
open override var volume: Float = 1.0f