user221209
user221209

Reputation:

Sound capture in CPP and Qt

I would like to capture some sound from the microphone in cpp, in order to use it in a Qt application.

So I'm looking for a multi platform library easily integrable in a Qt4 project.

Upvotes: 6

Views: 3539

Answers (2)

Håvard S
Håvard S

Reputation: 23876

OpenAL is a good, cross-platform C++ library for capturing audio.

Upvotes: 1

Gareth Stockwell
Gareth Stockwell

Reputation: 3122

Qt 4.6 introduces a new, low level suite of audio APIs in the QtMultimedia module. You can use QAudioInput to capture raw audio from a microphone.

At present, this API is implemented for Windows, Mac, and Linux (supporting PULSE and ALSA audio subsystems). Support for other platforms, including Symbian in the mobile space, is currently under development.

Upvotes: 6

Related Questions