PortAudio is a free, cross platform, open-source, audio I/O library. It lets you write simple audio programs in C that will compile and run on many platforms including Windows (WMME or DirectSound), Macintosh (8,9, and OSX), Unix (OSS, Alsa, or Jack), and more.