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. C / C++ / MFC
  4. PC Speaker

PC Speaker

Scheduled Pinned Locked Moved C / C++ / MFC
question
8 Posts 4 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.
  • M Offline
    M Offline
    M Mehrdad M
    wrote on last edited by
    #1

    Hi, There How we can Send a beep to Internal PC Speaker while a wave file is playing by the External Speaker via sound Card (Using i.e SndPlaySound())? Is There Any Idea? Yours, Mehrdad:confused:

    T G T M 4 Replies Last reply
    0
    • M M Mehrdad M

      Hi, There How we can Send a beep to Internal PC Speaker while a wave file is playing by the External Speaker via sound Card (Using i.e SndPlaySound())? Is There Any Idea? Yours, Mehrdad:confused:

      T Offline
      T Offline
      toxcct
      wrote on last edited by
      #2

      printf("%d", 0x07);

      as the ASCII character 7 is the bell character


      TOXCCT >>> GEII power
      [toxcct][VisualCalc]

      M 1 Reply Last reply
      0
      • T toxcct

        printf("%d", 0x07);

        as the ASCII character 7 is the bell character


        TOXCCT >>> GEII power
        [toxcct][VisualCalc]

        M Offline
        M Offline
        M Mehrdad M
        wrote on last edited by
        #3

        yes, But this play a beep on Both(Internal And external) i want to play only on ninternal speaker thanks,

        T 1 Reply Last reply
        0
        • M M Mehrdad M

          Hi, There How we can Send a beep to Internal PC Speaker while a wave file is playing by the External Speaker via sound Card (Using i.e SndPlaySound())? Is There Any Idea? Yours, Mehrdad:confused:

          T Offline
          T Offline
          ThatsAlok
          wrote on last edited by
          #4

          Is [MessageBeep] and [beep] of any help

          "Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow

          cheers, Alok Gupta

          1 Reply Last reply
          0
          • M M Mehrdad M

            Hi, There How we can Send a beep to Internal PC Speaker while a wave file is playing by the External Speaker via sound Card (Using i.e SndPlaySound())? Is There Any Idea? Yours, Mehrdad:confused:

            G Offline
            G Offline
            Geert van Horrik
            wrote on last edited by
            #5

            I think the [Beep function](<a href=) is where you are looking for. Geert Want to spread the newest version of your software automatically? Use Updater! Visit my website: http://geert.yoki.org

            T 1 Reply Last reply
            0
            • M M Mehrdad M

              yes, But this play a beep on Both(Internal And external) i want to play only on ninternal speaker thanks,

              T Offline
              T Offline
              toxcct
              wrote on last edited by
              #6

              M.Mehrdad.M wrote: But this play a beep on Both(Internal And external) never... it plays only on the internal speaker


              TOXCCT >>> GEII power
              [toxcct][VisualCalc]

              1 Reply Last reply
              0
              • G Geert van Horrik

                I think the [Beep function](<a href=) is where you are looking for. Geert Want to spread the newest version of your software automatically? Use Updater! Visit my website: http://geert.yoki.org

                T Offline
                T Offline
                toxcct
                wrote on last edited by
                #7

                broken link...


                TOXCCT >>> GEII power
                [toxcct][VisualCalc]

                1 Reply Last reply
                0
                • M M Mehrdad M

                  Hi, There How we can Send a beep to Internal PC Speaker while a wave file is playing by the External Speaker via sound Card (Using i.e SndPlaySound())? Is There Any Idea? Yours, Mehrdad:confused:

                  M Offline
                  M Offline
                  M Mehrdad M
                  wrote on last edited by
                  #8

                  Dear toxcct first, printf("%d", 0x07); prints 7 on stdio second, I tried printf("%d", 0x07); again, it plays beep on both speakers, iam working with VC++7,console mode Win32 app, WindowsXP

                  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