mIRC Homepage
Posted By: EmLoDnAoR Pc speaker - 14/11/06 07:01 PM
mIRC does not play beeps with the pc speaker when i turn that feature on..

"Use pc speaker

Makes mIRC play beeps through your pc speaker.

"

it just plays it on my normal soundcard frown
Posted By: qwerty Re: Pc speaker - 14/11/06 07:08 PM
Many motherboards with an onboard soundcard don't use the PC speaker at all, they play the sounds meant for the PC speaker through the soundcard (yes, even during boot). Are you sure this isn't the case for yours?
Posted By: EmLoDnAoR Re: Pc speaker - 14/11/06 07:15 PM
i am sure, and i have used different pcspeaker.exe to test my pcspeaker, and surely the sound comes from the pc speaker, also talked to others, and they could not get it to work, did it work for you?
Posted By: qwerty Re: Pc speaker - 14/11/06 07:20 PM
I can't test it, as my motherboard is one of those.

After testing a bit more, it seems the "Use pc speaker" doesn't make any difference here with respect to the sound produced: it still produces the Windows "Default Beep" sound (Control Panel > Sounds) and not the PC speaker beep.
Posted By: DaveC Re: Pc speaker - 14/11/06 09:36 PM
from memory the pc speaker can be beeped though manipulation of a port in the pc, but i dont think when u beep the speaker in mirc its doing this, rather its some command to the os to do it, and if the os isnt going to do it, it wont do it. So the exe u used might have bypassed the OS all togther maybe.
Posted By: EmLoDnAoR Re: Pc speaker - 15/11/06 05:35 AM
whatever the "os command" is, mIRC should figure that out and do the right thing, or this is a feature that not will work on any of the new motherboards i guess...

so in my opinion its a bug...
Posted By: Sais Re: Pc speaker - 15/11/06 09:28 AM
If an app tells the OS (via its API) to play something via the PC Speaker, and it does something different, that's not a bug in the app.

If the OS tells the hardware to play something via the PC Speaker and it doesn't, it's not a bug in the OS.

If the hardware you bought doesn't do what you want it to, then it's probably your fault <evil grin>

Anyway. A couple of things: Beep() is the windows API call to use the PC Speaker; I'd assume (with a large amount of confidence) that's what mIRC uses.
At a command prompt, does "echo ^G" (that's ctrl-g) give a PC speaker beep or not?
Posted By: EmLoDnAoR Re: Pc speaker - 15/11/06 12:36 PM
the ^G in dos beeps my pc speaker...
Posted By: Sais Re: Pc speaker - 15/11/06 02:29 PM
OK, as I understand it, that is what the API call Beep() should do, too.

Odd.
Posted By: Qb_Master Re: Pc speaker - 19/11/06 05:39 AM
This may not work in mIRC, but I remember that a way to produce a beep in some DOS languages was by outputting a certain character to the screen. I think it may have been chr 8.

Just a possible suggestion smile.
Posted By: Riamus2 Re: Pc speaker - 19/11/06 04:38 PM
Ctrl-8 doesn't work, but Ctrl-G does (as was mentioned). The trick would be sending that to the command prompt from mIRC. Although Ctrl-G looks like ^G at the command prompt, you can't just send ^G because it won't work, so using the /run command to open CMD and send ^G won't work. And I'm unsure how you send a control+character in the /run command.
Posted By: DaveC Re: Pc speaker - 19/11/06 06:53 PM
I think he actually said chr 8 not ctrl-8, but he was really thinking of chr7 which is ctrl-g anyway.

ps: this is a /run of it chr7 // ctrl-g

//run -n cmd /c echo $chr(7)
Posted By: Riamus2 Re: Pc speaker - 20/11/06 02:19 PM
Ah, I misread that and I didn't think about getting a $chr value for Ctrl-G. smile
© mIRC Discussion Forums