2485 posts Premium Scripts, Plugins and Themes
    Has been part of the Envato Community for over 7 years Has referred 200+ members Has sold $125,000+ on Envato Market Has been a beta tester for an Envato feature
+6 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
    Has been part of the Envato Community for over 6 years Has collected 1+ items on Envato Market Sells items exclusively on Envato Market
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.

2485 posts Premium Scripts, Plugins and Themes
    Has been part of the Envato Community for over 7 years Has referred 200+ members Has sold $125,000+ on Envato Market Has been a beta tester for an Envato feature
+6 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
    Has been part of the Envato Community for over 6 years Has collected 1+ items on Envato Market Sells items exclusively on Envato Market
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
    Has been part of the Envato Community for over 6 years Has referred 1+ members Sells items exclusively on Envato Market Made it to the Authors' Hall of Fame
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
    Has been part of the Envato Community for over 6 years Has collected 1+ items on Envato Market Sells items exclusively on Envato Market
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
    Has been part of the Envato Community for over 6 years Has referred 1+ members Sells items exclusively on Envato Market Made it to the Authors' Hall of Fame
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
    Has been part of the Envato Community for over 7 years Has referred 1+ members Has collected 10+ items on Envato Market Sells items exclusively on Envato Market
+2 more
iDraw says

looks HUGE and AWESOME :D good job ourben

by
by
by
by
by
by