OK, just a quick question. What is a good sound library I can use to play files? On a slightly unrelated note, what is one I can use to generate sounds (tones, like 8 or 16 bit.)? I would very much prefer it to be open source and platform independent. I'm using Code::Blocks with the MinGW compiler. If anyone can point me in the right direction, I would be much obliged. thanks.

How about the win32 api function PlaySound()

I have not attempted to generate a wave file, but if I did I would probably start here

But doesn't PlaySound() only work for console apps?

No, it is a win32 api function so it will work with both console and MS-Windows GUI apps. If you are writing a game using some type of game engine such as OpenGL or DirectX then use whatever that game engine provides.