Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Visual Basic
  4. Using the internal speaker

Using the internal speaker

Scheduled Pinned Locked Moved Visual Basic
questiontutorial
3 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • L Offline
    L Offline
    Lost User
    wrote on last edited by
    #1

    I need to know how to get sound to come out of my internal speaker. I know that using the Beep command from the Kernel should do it, except it sends it out my sound card to my external speakers. It does this even when I have the power off to the speakers (and power unplugged). I have tried unplugging the speakers from the computer and then I get no sound, so it still wants to use my sound card. Two questions - why is this happening and how can I get the internal speaker to play for me? There is an internal speaker I have another program that uses it. soundmax integrated audio is what I have for a sound card, I think (not my comp, work comp) Thanks

    J 1 Reply Last reply
    0
    • L Lost User

      I need to know how to get sound to come out of my internal speaker. I know that using the Beep command from the Kernel should do it, except it sends it out my sound card to my external speakers. It does this even when I have the power off to the speakers (and power unplugged). I have tried unplugging the speakers from the computer and then I get no sound, so it still wants to use my sound card. Two questions - why is this happening and how can I get the internal speaker to play for me? There is an internal speaker I have another program that uses it. soundmax integrated audio is what I have for a sound card, I think (not my comp, work comp) Thanks

      J Offline
      J Offline
      Jeremy Falcon
      wrote on last edited by
      #2

      On Windows 9x if there is an audio device installed and selected for playback Windows will not use the PC speaker (internal one). The beep statement doesn't always use the PC speaker like in QBasic. It's a wrapper for the Beep Windows API, which will use the sound card if possible. NT based systems will use the PC speaker for the Beep API. Why is it this way? Who knows, but it is. If you want to ensure you can use the PC speaker you'll have to do things manually. Fortunately, it's already been done. Look into using the following DLL to help you out... http://www.stormpages.com/bojanjurca/CSamples.htm#Speaker Jeremy L. Falcon "The One Who Said, 'The One Who Said...'"

      L 1 Reply Last reply
      0
      • J Jeremy Falcon

        On Windows 9x if there is an audio device installed and selected for playback Windows will not use the PC speaker (internal one). The beep statement doesn't always use the PC speaker like in QBasic. It's a wrapper for the Beep Windows API, which will use the sound card if possible. NT based systems will use the PC speaker for the Beep API. Why is it this way? Who knows, but it is. If you want to ensure you can use the PC speaker you'll have to do things manually. Fortunately, it's already been done. Look into using the following DLL to help you out... http://www.stormpages.com/bojanjurca/CSamples.htm#Speaker Jeremy L. Falcon "The One Who Said, 'The One Who Said...'"

        L Offline
        L Offline
        Lost User
        wrote on last edited by
        #3

        Thx for the help with that. I think it will work. I'm not at the comp to test it on but I will find out in about an hour from now. :) Anyway I think the source coede to the DLL will help me in C++ as well. I've been meaning to learn how to write a DLL, that should help me a great deal. So I thank you two fold for your reply Quinn

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups