mIRC Home    About    Download    Register    News    Help

Print Thread
#147895 26/04/06 04:41 AM
Joined: Apr 2006
Posts: 3
D
davjak Offline OP
Self-satisified door
OP Offline
Self-satisified door
D
Joined: Apr 2006
Posts: 3
Hi there. I did a search but found nothing of use.
I wrote my own dialog to play random mp3's
v6.16 all is fine as should be
v6.17 the did -o mp3random 1 1 $remove($nopath(%mp3),.mp3) is very sluggish.
I've looked at the versions.txt aswell and don't seem to see anything in there that would cause this problem

Suggestions/Help?

Thanks in Advance.. davjak

Joined: Dec 2002
Posts: 1,245
M
Hoopy frood
Offline
Hoopy frood
M
Joined: Dec 2002
Posts: 1,245
the only suggestion I can think of is to try -ra instead

did -ra mp3random 1 $remove($nopath(%mp3),.mp3)

Joined: Apr 2006
Posts: 3
D
davjak Offline OP
Self-satisified door
OP Offline
Self-satisified door
D
Joined: Apr 2006
Posts: 3
that seems to have speed it up a little.
I must admit I am being a little picky with this
but as an example
v6.16 was instant to the eye.
v6.17 did -o mp3random 1 1 $remove($nopath(%mp3),.mp3) was 500ms
v6.17 did -ra mp3random 1 $remove($nopath(%mp3),.mp3) is 350ms

Joined: Apr 2006
Posts: 3
D
davjak Offline OP
Self-satisified door
OP Offline
Self-satisified door
D
Joined: Apr 2006
Posts: 3
I fixed it. with a lot of tinkering around.
alias mp3s.amount { var %mp3s.all = $findfile($get.mp3.ini(mp3,dir),*.mp3,0) | $put.mp3.ini(mp3,amount,%mp3s.all) }
alias mp3s.all { return $get.mp3.ini(mp3,amount) }


then i just use
alias mp3s.all { return $get.mp3.ini(mp3,amount) }

and in the dialog use
%mp3 = $findfile($mp3.dir,*.mp3,$rand(1,$mp3s.all))
did -ra mp3random 1 $remove($nopath(%mp3),.mp3)

And when i init the dialog i just use
mp3s.amount to get total mp3 amount

Now speeds are back to where they were in 6.16

Last edited by davjak; 29/04/06 03:46 PM.

Link Copied to Clipboard