Thread
:
[Solved] How to record sound with pulseaudio from optional device?
View Single Post
Laethnes
2010-11-05 , 14:22
Posts: 26 | Thanked: 1 time | Joined on Oct 2010
#
1
I need write application recording sounds and it's needed to choose device. So, what I did so far:
- Wrote recorder with QtMultimedia. It's working for default device, but list provided by Qt is really short and choosing device from it doesn't work. From both reasons, this is no right way.
- Wrote recorder with PulseAudio. It's working for default device, but I can not use any other. I founded this
http://pulseaudio.org/wiki/SampleAsyncDeviceList
code to find out all devices (I couldn't find it anywhere else) and when I try any of them, it doesn't works. Sometimes error is "Invalid argument" and sometimes "No such entity".
My recorder uses simple API of pulseaudio, not the asynchronous one.
So, please, is there any tutorial how to record sound from non-default device with pa?
Language: C++
Project: I can not use existing application nor other language (like Python).
Last edited by Laethnes; 2011-04-29 at
08:59
.
Quote & Reply
|
Laethnes
View Public Profile
Send a private message to Laethnes
Find all posts by Laethnes