Copy link to clipboard
Copied
This question was posted in response to the following article: http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/media/Sound.html
Copy link to clipboard
Copied
It is left unspecified what the valid values for "format" parameter to the function "loadPCMFromByteArray" are.
Copy link to clipboard
Copied
Good question. Let me ask around.
Thanks for the catch!
Randy Nielsen
Senior Content and Community Manager
Adobe
Copy link to clipboard
Copied
What's the lifespan of "Sound"? I just see load function, but I don't see something function like "dispose". I wonder the memory cost of this object.
Copy link to clipboard
Copied
If you get at the underlying Sound byte[], you can call clear() on it thereby freeing up any memory associated.
Copy link to clipboard
Copied
The documentation does not enumerate the valid formats to use with Sound.loadPCMFromByteArray(). Does anybody know what they are beside the default "float" ?
Copy link to clipboard
Copied
I have a sound upon which I used Sound.loadPCMFromByteArray(). This sound reports a length of 0 even though it says it has loaded 88200 bytes of data through its bytesLoaded and bytesTotal properties. Is this normal ?