DecodeOgg Native Extension

DecodeOgg - Native extension for decoding ogg files in wav.

Standard sound does not work asynchronously. The libraries supporting it receive on input .wav. But this format takes up a lot of space, so I wrote an extension for decoding .ogg to .wav.
I tested the extension with OpenAL. It works great.

I seriously don’t know how this will work with sounds from the performance side. I did not notice problems with playing music.

This extension has proven to be very useful to me. For comparison, the file size without decoding and with it one song.
20.5 mb - > 1.9 mb

In my opinion this is a very good result.
For a smaller size, .wav was in mono

Platforms: windows, android


Cool! Don’t forget to submit it to the Asset Portal!

1 Like

Thank you for reminding me. Sent

Hi, thank you very much for his extension! The audio files are much smaller indeed.

I updated my functions, and it works fine on Defold but… when I want to build in HTML5…

Drama :sob:

(edit: oops, just realized the platforms were mentioned in the original post :monkey:)