views:

392

answers:

1

What's the best free cross-platform c99 (or earlier) library for getting sound input (microphone, etc)?

+3  A: 

Have a look at PortAudio. It is an open source C-Library which supports many different audio driver back-ends on different platforms, including:

Windows

  • WDM
  • DirectSound
  • WASAPI (Vista and later only)
  • ASIO
  • MME

Mac

  • Core Audio (OS X)
  • SoundManager (OS 7,8,9)

Linux

  • OSS
  • ALSA
  • Jack (still in development)

It also supports 32 and 64 bit versions of all the platforms.

The API is fairly clean and there are several good examples that are included in the source code.

Nick Haddad