Skip to content
RblSb edited this page Sep 5, 2018 · 3 revisions

API docs

kha.audio1 is the simplest API for reproduction of audio assets. It supports playing and streaming of sound files. Audio files are represented by an AudioChannel object which exposes methods for handling file playback.

play

In order to play an audio you have to decompress it first. Use Assets.sounds._soundName_.uncompress.

If you plan to stream the audio, you don't need to decompress it.

Assets.loadEverything will automatically decompress all audio.

Support

kha.audio1 is not yet implemented on Android (Java).

Clone this wiki locally