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