Fast Forward and fastBackward with sound in ActionScript3, is it possible?
Is it possible to create functionality like fast forward an开发者_如何学Pythond fast backward of given sound file that plays in swf with AtionScrip3 and how?
It is possible.
Take a look at SampleDataEvent, it allows you to manipulate the bytes of a sample before it is played. To play faster, to just have to skip one float every two. To play slower, to may write twice the same float.
If you do this, it "stutters" or repeats subsecond samples. Its as if it expects to take up N amounts of time and if your sample is N/2 mills long, it loops.
精彩评论