mIRC Home    About    Download    Register    News    Help

Print Thread
#228050 04/12/10 02:23 PM
Joined: Dec 2010
Posts: 1
D
Mostly harmless
OP Offline
Mostly harmless
D
Joined: Dec 2010
Posts: 1
I have a script where I can play a wave/mp3 of a list. I don't get any sound, when I try to play it directly with /splay mosquito.wav
I get a

* /splay: no such file 'mosquito.wav'

If I go //echo 3 $sound(mosquito.wav)

I get the correct soundfolder of mIRC D:\Program files\mIRC\sounds\

I run windows 7. If I open the sound mixer, I don't get a separate sound bar for mIRC, but I get it for anything else open, if it can play sound.

What am I missing here?

Joined: Oct 2004
Posts: 8,330
Hoopy frood
Offline
Hoopy frood
Joined: Oct 2004
Posts: 8,330
$sound() might look at your settings to find out your sound folder (I haven't tested that), but you need to include the path when using /splay.

/splay sounds\mosquito.wav should work (assuming mIRC.ini is in d:\program files\mIRC\). If mIRC.ini isn't in that location, then you'll need to use the entire path:

/splay "d:\program files\mIRC\sounds\mosquito.wav"


Invision Support
#Invision on irc.irchighway.net
Joined: Aug 2004
Posts: 7,252
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Aug 2004
Posts: 7,252
You should be able to use
Code:
/splay $qt($wavdirmosquito.wav)

When using just mosquito.wav mIRC looks in the directory returned by //echo -a $mircdir
However, $sound is 'smart' enough to know to look in the sound directory(ies) as well.
mIRC sets 3 identifiers to reference sound directories, and these can be changed.
The identifiers are $mp3dir, $wavdir and $middir

By default these point to the same place, namely the sound directory off of your mIRC installation.


Link Copied to Clipboard