does anyone know how to sound a tone through the computer speakers of a specific frequency?
Printable View
does anyone know how to sound a tone through the computer speakers of a specific frequency?
Use the Beep API.
It only works on NT machines though.
If you use VB3 (16-bit), there are API for this. But indeed, not possible in Win9x... unless you use some DLL like vbio or something.
vbio dll?? where can i find that and how do i use it????Quote:
Originally posted by Mad Compie
If you use VB3 (16-bit), there are API for this. But indeed, not possible in Win9x... unless you use some DLL like vbio or something.
You have to use IO in C++ because VB can't do this.
A DLL called "speaker.dll" does the thing:
see http://www.magma.ca/~dross/code.html for a sample VB program and the complete C++ source code!!!
Yes, I have an app that plays tones through the PC speaker at various frequencies.
I'll find it out when I get home and post it.
The Beep API works on 95/98 as well
I've found that PC Speaker app, have fun. :wave:
this crashed VB when i ran it in the IDE on my laptop using XP
'Privileged Instruction' prolly won't run under XP/2000
unless it needs to be compiled?
Sorry David, I didn't know that. I use Win98.
No it won't run on XP, it gets an error that it wants to email to Microsoft.
I asked the same question when i first got onto VBForums.com and here is the link:
http://vbforums.com/showthread.php?s=&threadid=286904
NOTE: the username i used to use is rotcrules