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#
  4. Creating a Sound(say, a Beep)

Creating a Sound(say, a Beep)

Scheduled Pinned Locked Moved C#
tutorial
5 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.
  • P Offline
    P Offline
    polishprogrammer
    wrote on last edited by
    #1

    I need to have a sound play in response to some internal event. I know how to play .wav files of any sort, but I don't want to play a .wav file..just send a beep. I think there's some unicode command that will do it, but if anybody could give me a tip on how to do it, that would be, well, helpful. Thanks.

    R P J 3 Replies Last reply
    0
    • P polishprogrammer

      I need to have a sound play in response to some internal event. I know how to play .wav files of any sort, but I don't want to play a .wav file..just send a beep. I think there's some unicode command that will do it, but if anybody could give me a tip on how to do it, that would be, well, helpful. Thanks.

      R Offline
      R Offline
      Ravi Bhavnani
      wrote on last edited by
      #2

      Clickety[^] /ravi

      This is your brain on Celcius Home | Music | Articles | Freeware ravib(at)ravib(dot)com

      1 Reply Last reply
      0
      • P polishprogrammer

        I need to have a sound play in response to some internal event. I know how to play .wav files of any sort, but I don't want to play a .wav file..just send a beep. I think there's some unicode command that will do it, but if anybody could give me a tip on how to do it, that would be, well, helpful. Thanks.

        P Offline
        P Offline
        PIEBALDconsult
        wrote on last edited by
        #3

        Write a character 7, or use System.Console.Beep which allows specifying the frequency and duration of the beep.

        1 Reply Last reply
        0
        • P polishprogrammer

          I need to have a sound play in response to some internal event. I know how to play .wav files of any sort, but I don't want to play a .wav file..just send a beep. I think there's some unicode command that will do it, but if anybody could give me a tip on how to do it, that would be, well, helpful. Thanks.

          J Offline
          J Offline
          JoeRip
          wrote on last edited by
          #4

          In .NET: using System.Media; SystemSounds.Beep.Play() You can also play any of the other Windows sounds.

          P 1 Reply Last reply
          0
          • J JoeRip

            In .NET: using System.Media; SystemSounds.Beep.Play() You can also play any of the other Windows sounds.

            P Offline
            P Offline
            polishprogrammer
            wrote on last edited by
            #5

            Thanks.

            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