← OPUS
Authors:
Tags:
dependencies:
- https://github.com/korlibs/korge-audio-formats/tree/v1.0.3/korau-opus##785bf659080dca4538a37868108645bcc4717cff
Supports loading OPUS files that have a great compression rate.
https://en.wikipedia.org/wiki/Opus_(audio_format)
Explicitly loading an OPUS sound or music
val data = resourcesVfs["sounds/8Khz-Mono.opus"].readSound(AudioDecodingProps(formats = OPUS))
Getting information (length) of an OPUS file
println(OPUS.tryReadInfo(resourcesVfs["sounds/8Khz-Mono.opus"].open(), AudioDecodingProps(exactTimings = true)))
Registering the OPUS format, so it can detect the format automatically
defaultAudioFormats.register(OPUS)
val data = resourcesVfs["sounds/8Khz-Mono.opus"].readSound()