Open GoogleCodeExporter opened 8 years ago
I had the same issue and a couple of changes fixed it. I am using Flash Player
10.
Here are the changes you need to make:
1. In WavDecoder.as add the following lines after the line:
wav.$bits = bytes.readUnsignedShort();
//extra format bytes
var temp:int = bytes.readUnsignedShort();
bytes.position += temp;
Basically just read the extra format bytes. I had no use for them so I throw
them away.
2. Next you may get a sandbox security error so in SoundFactory::fromByteArray
add
the following:
var loaderContext:LoaderContext = new LoaderContext();
loaderContext.allowLoadBytesCodeExecution = true;
loader.contentLoaderInfo.addEventListener( Event.COMPLETE, onSWFLoaded );
loader.loadBytes( swf, loaderContext );
Original comment by viran...@gmail.com
on 20 Mar 2009 at 8:27
Original issue reported on code.google.com by
vdati...@gmail.com
on 9 Mar 2009 at 6:58Attachments: