- Author was Featured
- Bought between 10 and 49 items
- Exclusive Author
- Has been a member for 6-7 years
- Interviewed on the Envato Notes blog
- Item was Featured
- Microlancer Beta Tester
- Referred between 200 and 499 users
@ourben
if you try to play a music file when the music is not completed loaded then the playhead jerks back and forth.
@ourben if you try to play a music file when the music is not completed loaded then the playhead jerks back and forth.
Yeah I hear ya, I’m working on that one… bit of a hack job though.
You see; the tracker needs to work on ‘time’ but the file time isn’t known immediately, hence the jitter. A few things I can’t control can help reduce it. CBR files and ID3 tags are two of those things.
Rest assured I’ll do whatever I can 
PS: The IOError is cleansed now – I expect the upload is pending.
- Author was Featured
- Bought between 10 and 49 items
- Exclusive Author
- Has been a member for 6-7 years
- Interviewed on the Envato Notes blog
- Item was Featured
- Microlancer Beta Tester
- Referred between 200 and 499 users
no hacks are needed. Actually the length property of Sound class in AS3 and duration property of Sound class in AS2 returns the length of the loaded sound/music not the whole file. You just have to find out the ratio and that can be done like (for AS3 ):
var length:Number = mySound.length; var position:Number = myChannel.position; var loadedBytes:Number = mySound.bytesLoaded; var totalBytes:Number = mySound.bytesTotal; var ratio:Number = loadedBytes / totalBytes; var finalLength:Number = length / ratio; var playingRatio:Number = position / finalLength;
and use the playingRatio to set the x position of the playhead.
no hacks are needed. Actually the length property of Sound class in AS3 and duration property of Sound class in AS2 returns the length of the loaded sound/music not the whole file. You just have to find out the ratio and that can be done like (for AS3 ):var length:Number = mySound.length; var position:Number = myChannel.position; var loadedBytes:Number = mySound.bytesLoaded; var totalBytes:Number = mySound.bytesTotal; var ratio:Number = loadedBytes / totalBytes; var finalLength:Number = length / ratio; var playingRatio:Number = position / finalLength;and use the playingRatio to set the x position of the playhead.
Exactly, it isn’t really the true length of the file – it’s a hack. You can’t rely on it to give accurate feedback and be an input control.
edit: it’s a tradeoff between jitters at load time, or a rollercoasting scrub handle.
Dont know if this already been talked about but i use Firefox and everytime i open a new tab for a track (music) and then close it i get this error
Error #2044: Unhandled IOErrorEvent:. text=Error #2032: Stream Error. at cc.eden.audiojungle::SamplePlayer$iinit() at _0_fla::MainTimeline/_0_fla::frame1()
Hope this helps to sort the error out.
Dont know if this already been talked about but i use Firefox and everytime i open a new tab for a track (music) and then close it i get this errorError #2044: Unhandled IOErrorEvent:. text=Error #2032: Stream Error. at cc.eden.audiojungle::SamplePlayer$iinit() at _0_fla::MainTimeline/_0_fla::frame1()
Hope this helps to sort the error out.
Yeah, it has been fixed… but it hasn’t been uploaded yet.
Dont know if this already been talked about but i use Firefox and everytime i open a new tab for a track (music) and then close it i get this errorYeah, it has been fixed… but it hasn’t been uploaded yet.Error #2044: Unhandled IOErrorEvent:. text=Error #2032: Stream Error. at cc.eden.audiojungle::SamplePlayer$iinit() at _0_fla::MainTimeline/_0_fla::frame1()
Hope this helps to sort the error out.
ah i see! great, thanks for the cool player mate 
looks HUGE and AWESOME
good job ourben
