AndroidAudioClip

class AndroidAudioClip(soundPool: SoundPool, soundId: Int) : AudioClip

Author

Colt Daily

Constructors

Link copied to clipboard
fun AndroidAudioClip(soundPool: SoundPool, soundId: Int)

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
open override val duration: Duration

The duration of audio.

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