Results 1 to 10 of 10

Thread: playing tones thru the speakers

  1. #1

    Thread Starter
    New Member
    Join Date
    Jan 2002
    Posts
    6

    Question playing tones thru the speakers

    does anyone know how to sound a tone through the computer speakers of a specific frequency?

  2. #2
    Megatron
    Guest
    Use the Beep API.

    It only works on NT machines though.

  3. #3
    Fanatic Member Mad Compie's Avatar
    Join Date
    Aug 2000
    Location
    Kuurne (Belgium)
    Posts
    553
    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.

  4. #4

    Thread Starter
    New Member
    Join Date
    Jan 2002
    Posts
    6
    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.
    vbio dll?? where can i find that and how do i use it????

  5. #5
    Fanatic Member Mad Compie's Avatar
    Join Date
    Aug 2000
    Location
    Kuurne (Belgium)
    Posts
    553

    Exclamation

    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!!!

  6. #6
    PowerPoster Keithuk's Avatar
    Join Date
    Jan 2004
    Location
    Staffordshire, England
    Posts
    2,236
    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.
    Last edited by Keithuk; Oct 5th, 2004 at 01:42 PM.
    Keith

    I've been programming with VB for 25 years. Started with VB4 16bit Pro, VB5 Pro, VB6 Pro/Enterprise and now VB3 Pro. But I'm no expert, I'm still learning.

  7. #7
    PowerPoster Keithuk's Avatar
    Join Date
    Jan 2004
    Location
    Staffordshire, England
    Posts
    2,236
    The Beep API works on 95/98 as well

    I've found that PC Speaker app, have fun.
    Attached Files Attached Files

  8. #8
    Banned dglienna's Avatar
    Join Date
    Jun 2004
    Location
    Center of it all
    Posts
    17,901
    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?
    Last edited by dglienna; Oct 4th, 2004 at 11:07 AM.

  9. #9
    PowerPoster Keithuk's Avatar
    Join Date
    Jan 2004
    Location
    Staffordshire, England
    Posts
    2,236
    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.
    Last edited by Keithuk; Jan 16th, 2005 at 05:24 PM.

  10. #10
    Fanatic Member ALL's Avatar
    Join Date
    Jul 2004
    Location
    192.168.1.1
    Posts
    711
    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
    Please support one of my projects?
    TKForums.com

    Web Forum
    JavaScript Wiki
    ________________________
    If somone helps you, please rate their post, by clicking the to rate their post

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width