views:

199

answers:

0
+2  Q: 

Speex-encoded SWF?

A project that I'm working on requires being able to dynamically create sound-asset SWF files (using DefineSound tags). Even though I've been able to successfully create DefineSound tags using raw pcm, I haven't been able to do so with Speex.

The SWF format spec (pgs 202-204) specifies that you can use Speex in a DefineSound tag, but its fairly vague about the specifics. Is it just the output of speex_bits_write with no framing? Is it the same as the output of speexenc (e.g., an Ogg file)? Is it a series of frames with a length before each one? I've tried variations of all these and none of them work.

CS4 can be used to create sound-asset SWFs, which is useful for having a real-world example. The problem is, the GUI only allows for some encodings (MP3, Nellymoser, raw, etc), but not Speex.

So, my question is: has anyone done this? Can you point me to a reference implementation or an example Speex SWF?