Results 1 to 8 of 8

Thread: Build WAV's on the fly

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Dec 2002
    Location
    North Carolina
    Posts
    734

    Build WAV's on the fly

    Basically I have the frequency's of a sound, in hZ and the duration to let it play, and I would like to be able to play a wav file with these, generating a wav file is not necessary because all I need is it to play during runtime,

    For example, user has input 300 freq/duration combinations and would like to hear what they sound like.

    Right now I am using the beep API which doesn't sound to well =)

    If anyone has any ideas that would be great, also, I remember I had a module called wav.bas that did this great, but I lost it in a format =(

  2. #2

    Thread Starter
    Fanatic Member
    Join Date
    Dec 2002
    Location
    North Carolina
    Posts
    734
    bump

  3. #3
    Super Moderator manavo11's Avatar
    Join Date
    Nov 2002
    Location
    Around the corner from si_the_geek
    Posts
    7,171


    Has someone helped you? Then you can Rate their helpful post.

  4. #4

    Thread Starter
    Fanatic Member
    Join Date
    Dec 2002
    Location
    North Carolina
    Posts
    734
    wow thanks! You're a life saver manavo!

  5. #5
    Super Moderator manavo11's Avatar
    Join Date
    Nov 2002
    Location
    Around the corner from si_the_geek
    Posts
    7,171


    Has someone helped you? Then you can Rate their helpful post.

  6. #6
    PowerPoster Keithuk's Avatar
    Join Date
    Jan 2004
    Location
    Staffordshire, England
    Posts
    2,236
    Have a look at this app. It will play sounds at any frequency <20,000 and a duration of <30,000. Its far better than beep which is paltry.
    Attached Files Attached Files
    Last edited by Keithuk; Dec 5th, 2004 at 09:39 AM.
    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

    Thread Starter
    Fanatic Member
    Join Date
    Dec 2002
    Location
    North Carolina
    Posts
    734
    Although what you posted looks good, Keithuk, I get the following error when I try to run it:

    The exception Privileged instruction.

    (0xc0000096) occurred in the application at location 0x00199aca

    OS: 2000

  8. #8
    PowerPoster Keithuk's Avatar
    Join Date
    Jan 2004
    Location
    Staffordshire, England
    Posts
    2,236

    Re: Build WAV's on the fly

    Yes dsheller, my reply is a couple of years old. I asked recently way PC Speaker won't work on Win2k/XP.

    http://www.vbforums.com/showthread.php?t=393713&
    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.

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