Is it possible to play sounds with the
PC-Speaker (in VB 3.0) ?
Thanks for some adive, Matt :rolleyes:
Printable View
Is it possible to play sounds with the
PC-Speaker (in VB 3.0) ?
Thanks for some adive, Matt :rolleyes:
I remember doing this in BASIC on the BBC when I was, like, 9 or something Hehe. Hmm.. what was the syntax?...
It was 'play' or 'sound' or something. I think it was sound. You called the sound function and gave it a frequency and duration, and you got that tone from the PC (or in my case BBC) speaker. Might not work any more I guess. Still, worth a try eh? Good luck :D
I don't think VB supports the Sound method that QBasic did.:( Though i do remember trying to write songs with only number to play with. The best i think you can get from VB is the simple and boring beep.
As I know there's an API call to play speaker sounds... *looks*
Yeah, found it!
It seems that you can set frequency and duration.. hope this helps ;)Code:Public Declare Function Beep Lib "kernel32" Alias "Beep" (ByVal dwFreq As Long, ByVal dwDuration As Long) As Long
Nice one Fox :D Just like old times hehe
That beep thing doesn't work on my computer. I think
it only works on Win98+ or something.
Well, I just said that to add to my posts.
See you later alligator
See you in a while crocodile
See you soon baboon
See you in a tick you little pri...
[Director: CUT!]
ck. Bye!
Do a search for it. I know I've answered this question somewhere. Frequency, tone, sound, PC Speaker, other key words like that should do it for you.
bob
Visit these sites for the complete story:
http://forums.vb-world.net/showthread.php?threadid=5405
http://www.vbcode.com/asp/showsn.asp?theID=929
HTH :)