mIRC Homepage
Posted By: aquarat SPlay feature request - 21/12/04 09:55 PM
I'd like to suggest a new feature, that feature being splay's ability to seek in wave files.

Also, if possible, can splay have the ability added so that someone can define the section of a file to play, for instance :

splay bla.mp3 100 120

The above command would then play from the 100ms point in the file to the 120ms point in the file, thus playing 20 ms from the file. (in and out point in the arguments for both wave and mp3)

I'm asking for this feature because in scripts that use sounds, it's much easier to work with a script that has one mp3 file containing all sounds. I asked for the wave feature because it seems that mp3 support for splay is flawed on some machines.

Thanks
Posted By: tidy_trax Re: SPlay feature request - 21/12/04 10:08 PM
Reply for your second suggestion:

Although maybe not as accurate as being a built in feature, you could pretty much get the same effect by using the [pos] argument in /splay, and then using a timer, eg:

Code:
alias splayx {  
  splay $eval($ $+ 1- $+ $calc($0 - 1),2)  
  .timer -m 1 $calc($eval($ $+ $0,2) - $eval($ $+ $calc($0 - 1),2)) splay stop
}


/splayx <file> <starting position> <ending position>
Posted By: aquarat Re: SPlay feature request - 21/12/04 10:17 PM
I've built an alias which uses a multimedia timer to stop splay, the problem is that I don't know how to get rid of the "* Timer 1 ..." text that displays every time a timer stops or starts.
Posted By: Seifer Re: SPlay feature request - 21/12/04 10:28 PM
Prefix the /timer command with a period (.)

/.timer 1 1 echo -a Hello!
© mIRC Discussion Forums