mIRC Homepage
Posted By: Edie * /splay: unable to play ... - 01/09/07 07:22 PM
Why can't i play music on my mIRC? /splay -p <Map> doesn't works, because i get this error message whole the time:

* /splay: unable to play 'C:\Documents and Settings\liedjes\Robin Beck - First Time.mp3' (line 49, script8.ini)

It's not the song and it's not the script. Can someone help?
Posted By: ik000ike Re: * /splay: unable to play ... - 01/09/07 07:24 PM
show us line 49, in your script8.ini
Posted By: schaefer31 Re: * /splay: unable to play ... - 01/09/07 07:26 PM
My guess is you need to put the directory path in quotes ("..."), but yes, please show the line mentioned.
Posted By: Edie Re: * /splay: unable to play ... - 01/09/07 07:47 PM
Line 49:

splay -p $qt($findfile($readini(tehmp.ini,Directory,Playlist1),$+(*,$did(16).seltext,.mp3),1,))

But, it's not the script, all /splay's aren't working.

EDIT:

My operating system is XP. I've also used /splay alot on my laptop, it's working fine there.
Posted By: deegee Re: * /splay: unable to play ... - 01/09/07 09:29 PM
Does using short filename work?
Code:
 splay -p $findfile($readini(tehmp.ini,Directory,Playlist1),$+(*,$did(16).seltext,.mp3),1).shortfn

Posted By: Wims Re: * /splay: unable to play ... - 01/09/07 09:56 PM
When Sound is off, if you try to /splay a file, mIRC doesn't give an error, it just not play the file.

I know some others person who are able to reproduce this error when playing a file.
Posted By: deegee Re: * /splay: unable to play ... - 01/09/07 10:03 PM
Originally Posted By: Wims
When Sound is off, if you try to /splay a file, mIRC doesn't give an error, it just not play the file.

Yes, that is exactly what my post points out wink

Originally Posted By: Wims
I know some others person who are able to reproduce this error when playing a file.

It isn't an error, it's a design feature. I believe it was requested at some point.
Posted By: Wims Re: * /splay: unable to play ... - 01/09/07 10:29 PM
Quote:
Originally Posted By: Wims
I know some others person who are able to reproduce this error when playing a file.

It isn't an error, it's a design feature. I believe it was requested at some point.


Why mIRC return an error ?
If his file can be played with another program, (and if his file exists), why mIRC can't read it ?




Posted By: deegee Re: * /splay: unable to play ... - 01/09/07 10:41 PM
Ah, woops! I missed that he had an error... shocked

Disregard the "/ebeeps on" post then. laugh
Posted By: Wims Re: * /splay: unable to play ... - 01/09/07 10:58 PM
Lol ok, but what i said is wrong too, playing a file that doesn't exists give an the error even if sound is off smile
Posted By: Riamus2 Re: * /splay: unable to play ... - 02/09/07 01:44 AM
As mentioned, turn on sounds in mIRC's options to be able to use /splay.
Posted By: RoCk Re: * /splay: unable to play ... - 02/09/07 01:39 PM
Obviously sounds are enabled or he wouldn't get the error message.
Posted By: hixxy Re: * /splay: unable to play ... - 02/09/07 05:38 PM
This has happened to me in the past when I've tried to play a file with a format that doesn't match the extension, ie. an mp3 file with a .wma extension. When playing the same file in windows media player it complained about the file not matching the format and asked if I wanted to play it anyway.
Posted By: Edie Re: * /splay: unable to play ... - 02/09/07 06:02 PM
.wma files are working. .mp3 files aren't.

Somebody knows what i could do? smile

PS: It's just the /splay not the script.
Posted By: Horstl Re: * /splay: unable to play ... - 02/09/07 07:02 PM
Just an idea... does mIRC "recognize" the file(s) in question as mp3 files?
You can test this with e.g.; //echo -a $sound($qt(filename.here)).version
...The output should be like "MPEG 1.0 Layer 3"
Posted By: Edie Re: * /splay: unable to play ... - 02/09/07 07:06 PM
'MPEG 1.0 Layer 3'

Hmm.. Why isn't it working tired
Posted By: Horstl Re: * /splay: unable to play ... - 02/09/07 07:11 PM
Hum, did you try a different file location? (..thinking of restricted file access according to user account or other settings)
Try e.g. your $mircdir and another drive / partition of that PC.
Posted By: Edie Re: * /splay: unable to play ... - 02/09/07 07:22 PM
Nope; not working.

I'm still getting same error message.
Posted By: Edie Re: * /splay: unable to play ... - 04/09/07 10:43 AM
...
Posted By: noMen Re: * /splay: unable to play ... - 04/09/07 07:21 PM
It looks like Edie is nuts, but he isn't. I made a player for mirc which works perfectly for me and lots of other people. Today I got the question: "Your player only plays wma and not mp3". I asked this person to send me this piece of music and at my pc it is being played very well. I let her change the filename (replace spaces by underscores), put the file at another location, etc. but nothing helped. I changed filenames myself and relocated them and got no errors. She uses xp too like Edie. And she has mirc 6.17. I'm stunned ....

* /splay: unable to play 'H:\Shared\02 Beauty And The Beast.mp3' (line 1015, rb-CoolPlayer.mrc)

Why????
Posted By: noMen Re: * /splay: unable to play ... - 04/09/07 07:23 PM
Edie??? Which player are you using???
Posted By: Bekar Re: * /splay: unable to play ... - 05/09/07 12:14 AM
What version of Media Player is installed?

If memory serves, it needs at least Windows Media Player v6 (or something). mIRC uses it's libraries.
Posted By: noMen Re: * /splay: unable to play ... - 06/09/07 12:58 PM
Windows Media Player version 11 is installed at my girlfriend's PC. Other people who use my playerscript without any problems have the same version. I dived into the mirc and player options she uses and everything looks fine. Strange thing is also that the file to be played is recognised:

Code:
  if $isfile(%playfile) {
    ...
    ...
    splay %playfile
    ...


And despite that the errormessage "* /splay : unable to play file" is given. Anybody with ideas???????

And: I copied the file she tried to play to my PC, loaded it into my player and .... it plays!

And: when she takes another playerscript and tries to play the same file .... it plays! And that script uses .... splay <filename> exactly as my script does.

I'M STUNNED
Posted By: Riamus2 Re: * /splay: unable to play ... - 06/09/07 09:47 PM
What is %playfile equal to? In testing, I tried to play a file from the editbox in 6.3 in this way:

//splay mp3\this is a song.mp3

That failed. However,

//splay $mircdir\mp3\this is a song.mp3

Worked. Try changing your script to include a full path rather than a relative path and see if that fixes the problem.
Posted By: noMen Re: * /splay: unable to play ... - 06/09/07 10:03 PM
Thanks for your reply, but %playfile contains the full path. As said before, the same script with the same song in the same directory is working on one pc and failing on the other. In both cases the player shows a full list of all mp3's found on hard disk. So the files are found, are known but are not always played. Strangest thing is that on pc's were it fails the same files can be played in another playerscript that also uses /splay .... that really beats me!

By the way, on pc's were my script fails, the single command /splay <fullpath\filename.mp3> entered in a mirc window fails too! /splay -p, /splay -c, /splay -wmd skip etc .. don't help either.
Posted By: Wims Re: * /splay: unable to play ... - 06/09/07 10:18 PM
Did you tried to /splay the file on a clean mirc , in editbox and in remote, with $qt, $shortfn ?

The same file which has the same path can be played on one clean mirc, and not on a second ?
Posted By: noMen Re: * /splay: unable to play ... - 06/09/07 10:29 PM
We will investigate $qt and $shortfn tomorrow. I have the feeling it has something to do with qwerty's answer in this threat: https://forums.mirc.com/ubbthreads.php?ubb=showflat&Number=185209&Main=34409#Post185209
Something with NTFS partition ....
Posted By: Collective Re: * /splay: unable to play ... - 07/09/07 12:43 AM
This MSDN article is relevant.
Posted By: noMen Re: * /splay: unable to play ... - 07/09/07 09:42 AM
Hmz ... it hasn't anything to do with NTFS partitioning. I don't use NTFS but I found the same problem with my PC too. Mirc should be able to play mp3 and wma, so I inserted some wma songs in my playlist. When I select an mp3 song it is played as expected and when I select a wma song I get "/splay unable to play file ...". But this wma song is played correctly with my Windows media player. So: the path is ok, the filename is ok, my Windows mediaplayer is ok. Could there be something wrong with CODEC? Unfortunately I don't know much about CODEC smirk
© mIRC Discussion Forums