mIRC Homepage
Posted By: Cyclone /splay -q : (queue sounds) question - 03/07/04 06:03 PM
When you queue sounds for playing after the current track has ended is there any way of listing the queued tracks?

The mIRC helpfile says:
/splay -cwmpq [filename | stop | pause | resume | seek | skip] [pos]
Plays the specified sound, which can be a .wav, .mid, or .mp3 file.

The -q switch allows you to queue sounds for playing after the current sound ends.


I can't find any information about being able to list the queued sound files. Any help will be appreciated grin

Posted By: Online Re: /splay -q : (queue sounds) question - 04/07/04 12:41 AM
There's no way, but scripts can listen to the On mp3end event and play files from a customized, scripted playlist.
Posted By: Cyclone Re: /splay -q : (queue sounds) question - 04/07/04 07:56 AM
thanks Online...

I'm already using the, on *:MP3END:, event identifier. I just wondered if there was a way to list queued /splay sounds in a dialog editbox, listbox or combo and use them like a playlist. I think i'll /write them to a text file and $read and/or /splay them from there, seeing as the queueing route looks like it's a dead-end. wink
Posted By: tsoglanos Re: /splay -q : (queue sounds) question - 04/07/04 08:22 AM
here is a quick code smile
Code:
  
alias Qplay {
  write X.txt $1- 
  splay -q $1-
  echo -atc notice * $nopath($1-) , add to play queue

}
on 1:Mp3end:{ 
  var %f = 1 | while ($read(x.txt,%f)) { if ($filename == $read(x.txt,%f)) write $+(-dl,%f) x.txt | inc %f }
  if ($window(@P)) { clear @p | loadbuf $lines(x.txt) @p x.txt }
}

alias w2 {
  if ($window(@p)) { clear @P | loadbuf $lines(x.txt) @p x.txt }
  else { window -lk0bd @p | loadbuf $lines(x.txt) @p x.txt }
}


;usage: /Qplay filename 
;use: /w2 , to veiw list if any!
© mIRC Discussion Forums