Warning: skipping unsupported OGG file

Just tried the demo, looks great!

If it works well, then I propose we add it to the Haxe format library. The Lime tools already rely on this for compilation, and I believe I have commit rights.

The second question is if we can extend Sound and make it work the same as an ordinary sound. I’m concerned that there might be some reason we cannot do this, but if we are able, then this would be perfect – Assets.getSound returns a Sound type (like normal) but #if format we can return an OGG Sound

I also wonder if the format code should be split into “ogg” and “vorbis” classes rather than only “vorbis”, but that’s just semantics

Exciting!

I’ve started adapting the lib to format so it can be merged.

I’ll also try to modify openfl to see if it’s possible to extend Sound.

EDIT: Doesn’t sound possible sadly :frowning:

VerifyError: Error #1103: The class stb.format.vorbis.flash::VorbisSoundChannel cannot extend final base class.

I successfully managed to get ogg as a subclass of Sound, I still need to modify Assets.getAudio, and clean everything.

“Exciting” pretty much sums it up! I will be happy to test this in the next release.