2481 posts Premium Scripts, Plugins and Themes
  • Bought between 10 and 49 items
  • Elite Author
  • Envato Studio (Microlancer) Beta Tester
  • Exclusive Author
  • Has been a member for 7-8 years
  • Interviewed on the Envato Notes blog
  • Referred between 200 and 499 users
+1 more
LucidStudios says

@ourben

if you try to play a music file when the music is not completed loaded then the playhead jerks back and forth.

436 posts
  • Bought between 1 and 9 items
  • Exclusive Author
  • Has been a member for 6-7 years
ourben says
@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.

2481 posts Premium Scripts, Plugins and Themes
  • Bought between 10 and 49 items
  • Elite Author
  • Envato Studio (Microlancer) Beta Tester
  • Exclusive Author
  • Has been a member for 7-8 years
  • Interviewed on the Envato Notes blog
  • Referred between 200 and 499 users
+1 more
LucidStudios says

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.

436 posts
  • Bought between 1 and 9 items
  • Exclusive Author
  • Has been a member for 6-7 years
ourben says
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.

108 posts
  • Exclusive Author
  • Has been a member for 6-7 years
  • Referred between 1 and 9 users
1DollarBeats says

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.

436 posts
  • Bought between 1 and 9 items
  • Exclusive Author
  • Has been a member for 6-7 years
ourben says
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.

Yeah, it has been fixed… but it hasn’t been uploaded yet.

108 posts
  • Exclusive Author
  • Has been a member for 6-7 years
  • Referred between 1 and 9 users
1DollarBeats says
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.
Yeah, it has been fixed… but it hasn’t been uploaded yet.

ah i see! great, thanks for the cool player mate ;)

1045 posts
  • Bought between 10 and 49 items
  • Exclusive Author
  • Has been a member for 6-7 years
  • Referred between 1 and 9 users
  • Switzerland
iDraw says

looks HUGE and AWESOME :D good job ourben

by
by
by
by
by
by