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. Sounds with c#

Sounds with c#

Scheduled Pinned Locked Moved C#
csharptutorial
7 Posts 6 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.
  • S Offline
    S Offline
    sno 1
    wrote on last edited by
    #1

    greetings for all, I am very instered in learn how work with sound in c#... for instance load a music file, see the frequency of that, if any one have any idea or better have a project as example, please tell my, regards my;)

    T C L J L 5 Replies Last reply
    0
    • S sno 1

      greetings for all, I am very instered in learn how work with sound in c#... for instance load a music file, see the frequency of that, if any one have any idea or better have a project as example, please tell my, regards my;)

      T Offline
      T Offline
      Thomas Stockwell
      wrote on last edited by
      #2

      I believe in .NET 2.0 their is a System.Media namespace that has classes to handle wav sound files. If you are using .NET 1.1 or before (or if the classes in the System.Media namespace can't help you with your specific file format) then you might try using activeX controls. I know Windows Media Player has a control for video, but I am not sure whether they have a control for audio. Now that I think of it, I remember somewhere on this site their is an article on audio output using Windows Media Player. Try searching.

      Regards, Thomas Stockwell Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning. Visit my homepage Oracle Studios[^]

      1 Reply Last reply
      0
      • S sno 1

        greetings for all, I am very instered in learn how work with sound in c#... for instance load a music file, see the frequency of that, if any one have any idea or better have a project as example, please tell my, regards my;)

        C Offline
        C Offline
        Christian Graus
        wrote on last edited by
        #3

        To just play a file, using Windows Media Player as a control works best. To work with sound directly, you need DirectSound, part of the DirectX libraries.

        Christian Graus - Microsoft MVP - C++ Metal Musings - Rex and my new metal blog

        1 Reply Last reply
        0
        • S sno 1

          greetings for all, I am very instered in learn how work with sound in c#... for instance load a music file, see the frequency of that, if any one have any idea or better have a project as example, please tell my, regards my;)

          L Offline
          L Offline
          led mike
          wrote on last edited by
          #4

          sno-1 wrote:

          see the frequency of that

          What does that mean :confused:

          led mike

          S 1 Reply Last reply
          0
          • S sno 1

            greetings for all, I am very instered in learn how work with sound in c#... for instance load a music file, see the frequency of that, if any one have any idea or better have a project as example, please tell my, regards my;)

            J Offline
            J Offline
            Judah Gabriel Himango
            wrote on last edited by
            #5

            If you just want to play WAV sound files, you can use System.Media.SoundPlayer. If you want to do advanced things like changing the frequency of sound files, you'll need to go outside the .NET framework for that. You can use DirectSound, part of DirectX. You could probably also use DirectShow, which is part of the PlatformSDK. There are DirectShow wrappers for .NET on this site if you care to search the articles.

            Tech, life, family, faith: Give me a visit. I'm currently blogging about: Check out this cutie The apostle Paul, modernly speaking: Epistles of Paul Judah Himango

            1 Reply Last reply
            0
            • L led mike

              sno-1 wrote:

              see the frequency of that

              What does that mean :confused:

              led mike

              S Offline
              S Offline
              sno 1
              wrote on last edited by
              #6

              yes as you know, all word that we say, more or less, have a average in a frequency scale, but not wory, indeed I star now a project for do many things using this topic "sound", when I finish this a post that... regards for all:-D

              1 Reply Last reply
              0
              • S sno 1

                greetings for all, I am very instered in learn how work with sound in c#... for instance load a music file, see the frequency of that, if any one have any idea or better have a project as example, please tell my, regards my;)

                L Offline
                L Offline
                Luc Pattyn
                wrote on last edited by
                #7

                You can also "execute" a sound file (as if double clicked in Explorer), using the Process class; please see the many messages that have popped up about this on these message boards... :)

                Luc Pattyn

                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