[Vorbis-dev] Flash/Vorbis: Even more improvements

Oliver Thuns oli+243897 at ml0815.streaps.org
Wed Oct 15 04:12:52 PDT 2008


On Wed, Oct 15, 2008 at 11:12 AM, Tor-Einar Jarnbjo
<tor-einar at jarnbjo.name> wrote:
> Hello everyone,
>
> the code is slowly getting a little bit messy, but at least I've managed
> to tweak a lot of performance out of my Vorbis player for Flash. I did
> several improvements to the Huffman decoder by eliminating function
> calls and managed after a while to create an AS/haXe hybrid player. The
> haXe compiler definately produces much more efficient bytecode (at least
> in some situations) and the iMDCT function is 2.5-3 faster compiled with
> haXe, compared to the code generated by the Adobe compiler. If someone
> knows how to generate an SWC library from the haXe code, I would
> appreciate some help a lot. At the moment, the haXe code is dynamically
> linked into the AS application at runtime.
>
> Overall, the CPU load is getting very acceptable:

Big difference! Very nice!

I don't know how to create an SWC from haxe, maybe ask on the haxe mailing list.

You could try to translate haxe to AS3 with haxe. Generate a SWC lib
with the Adobe software. Unpack the swc file with unzip, replace the
AS3 swf with the haxe swf and zip it back to swc. No idea, if that
really works.


More information about the Vorbis-dev mailing list