convert audio files into sample file at run-time

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By eaglecat
:warning: Old Version Published before Godot 3 was released.

is there any way to convert
audio file(compressed. like *.ogg) ]to sample file(uncompressed) at run-time?

:bust_in_silhouette: Reply From: Daniel Lewan

Build in into godot? No, I don’t think so. You can use StreamPlayer and play ogg files directly, I’m not sure about performance though.

If you REALLY have to convert oggs to samples at run-time you can try call external tool like ffmpeg using OS.execute() and then loading sample with load() but user would have to have ffmpg installed.