haXe Forum > Sound.samplesCallbackData exists?
-
Drakim Feb 07 at 06:14
Haxe claims that there is a samplesCallbackData property to the Sound class.
extern class Sound extends flash.events.EventDispatcher { ... var samplesCallbackData(default,null) : flash.utils.ByteArray; ... }
Adobe, however, does not:
http://www.adobe.com/livedocs/flash/9.0/ActionScriptLangRefV3/flash/media/Sound.htmlTesting this myself, it seems that the newest version of Flash Player 10 agrees with Adobe.
Is this simply some old code that remained in HaXe or is there some big obvious secret I've yet to be let in on? :s
-
I have tried code to make sounds in flash 10 haXe and I used slightly different syntax. I believe that adobe changed it, maybe it would be worth filing as a possible issue, as I found this post.
flash-player-10-sound-api-changes-sampledata-and-sampledataevent
-
Drakim Feb 07 at 23:45
Yeah, it appears that Adobe changed some things around, and that the HaXe libraries that connects to flash has yet to be updated to reflect this. Sound simply doesn't have the property samplesCallbackData anymore.
-
I added a page flash10 - flash9.events.SampleDataEvent, although I don't find sound creation easy to use or understand it would be great if someone created a simple haXeLib for creating sound easily.
-
Drakim please report incorrect api details you noticed to the dev issue list.
-
Drakim Feb 08 at 16:42
Ah, okay. I'll do so.