Results 1 to 8 of 8

Thread: How to play sound EXACTLY from PC Internal Speaker (not from sound card)?!!

Threaded View

  1. #1

    Thread Starter
    Member
    Join Date
    Apr 2002
    Location
    in
    Posts
    40

    Question How to play sound EXACTLY from PC Internal Speaker (not from sound card)?!!

    Hi all professionals,

    Its a great problem:

    I have searched too much in VBForums, Planetsourcecode,... and all over the internet, but can't find a solution to make a sound (only a beep!) from internal PC Speaker (located on system motherboard).

    There is 2 problems using BEEP Api:

    1. If your mixer settings (Windows Volume control), not MUTE the 'PC Speaker', all PC Speaker sounds will play via sound card (even using BEEP api function) and you will hear it from sound card speakers (not internal pc speaker)

    2. If you remotely connected to a PC (Remote Desktop with /CONSOLE parameter) all sounds will play from your PC, Not remote PC; and your sound card speakers play sound instead of remote internal PC speaker!!

    How can I do it? In DOS old days, we use PORT &h60 or &h61 (i can't remember which one!) to make a bit 0 or 1. and make sound exactly from internal PC Speaker.
    Now how can I do it in WIndows XP? Is this only solution to be sure the internal pc speaker sounds? Is this solution performable under Windiws XP (in Win9x easily you can do it by QBasic!)

    Thanks a lot
    Last edited by fatehi; Apr 16th, 2008 at 04:28 AM.
    A.B.Fatehi
    Microsoft Certified Professional

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