1

What is a sound library I can use to easily manipulate sound files (mp3, ogg, wav, etc.).

I'm doing this as a leasure project and as such I'm more than willing to read a bit because I want this to be a little learning experience.

Any help, SO? :D

Sergio Tapia
  • 40,006
  • 76
  • 183
  • 254
  • 1
    What sort of manipulation are you planning to do? Just playing them, or actually editing them? – Erik Forbes Nov 09 '09 at 22:41
  • Sorry for the mix up. I have no intention of manipulating or otherwise editing the sound files. I just want to show bars moving to the beat, etc. Something flashy as a way to learn the GDI in Windows. – Sergio Tapia Nov 09 '09 at 22:48

2 Answers2

2

If you need more than just .wav files, as it appears you do, and you're using .NET 3.0 or higher, have a look at:

MediaPlayer Class

It's basically a wrapper around Windows Media Player, and will let you do in code most (if not all) of what WMP can do.

If you're still in .NET 2.0, have a look at the Windows Media Player SDK, which is a significantly uglier wrapper around Windows Media Player. See this answer.

Community
  • 1
  • 1
Ryan Lundy
  • 204,559
  • 37
  • 180
  • 211
0

SoundPlayer class for wav. At the bottom of that documentation there is a link to a page explaining how to also play mp3 and wma.

Nestor
  • 13,706
  • 11
  • 78
  • 119