Can I have MIC when doing ALSA emulation

OSS specific Linux discussion (x86/amd64)

Moderators: hannu, dev, cesium

freedom
New Member
Posts: 8
Joined: Mon Dec 07, 2009 7:38 pm

Can I have MIC when doing ALSA emulation

Postby freedom » Mon Dec 07, 2009 8:02 pm

I have working OSS with my KDE4 and Phonon's XINE backend. But I have trouble with Qutecom app for SIP telephony which in configuration window of audio devices give me only ALSA: default.
So I found in OSS Wiki Tips&Tricks that ALSA emulation can be done with that kind of apps and I create .asoundrc with suggested content.
Now I have sound from app but I don't have microphone in so I cannot use telephony app. :oops:

cesium
Developer
Posts: 902
Joined: Sun Aug 12, 2007 12:51 am

Re: Can I have MIC when doing ALSA emulation

Postby cesium » Tue Dec 08, 2009 3:06 pm

I don't think input works with ALSA emu using pcm-oss. Maybe cuckoo will work, but it usually doesn't...
I do have an (untested) idea, but it's a bit complex:

Download the qutecom source ("apt-get source qutecom")
Edit debian/rules in the newly created qutecom source dir, and change
"-DOWSOUND_PORTAUDIO_SUPPORT=OFF" to
"-DOWSOUND_PORTAUDIO_SUPPORT=1".
Get the build dependencies ("sudo apt-get build-dep qutecom") and portaudio ("sudo apt-get install portaudio19-dev").
You may (not sure here) also have to to edit libs/sound/CMakeList.txt and have it include the libs/sound/src/portaudio/AudioDeviceManager.cpp file under the Linux defines (see WIN32 section for how it probably should be done...)
Now build qutecom ("dpkg-buildpackage" in the source dir. No need for sudo if you have fakeroot installed).
Install the generated .deb file. ("sudo dpkg -i" etc.)

This procedure ought to build qutecom with portaudio support, which should allow it to use OSS directly..

igorzwx
Known Member
Posts: 1246
Joined: Sun Jun 28, 2009 9:31 pm

Re: Can I have MIC when doing ALSA emulation

Postby igorzwx » Tue Dec 08, 2009 3:18 pm

cesium wrote:I have an (untested) idea
This procedure ought to build qutecom with portaudio support, which should allow it to use OSS directly..


It may not work, if PortAudio was compiled with --disable-oss (or something like this).
In short, it depends on how PortAudio was compiled.
On Ubuntu, you may need to recompile PortAudio.

Temüjin
Member
Posts: 84
Joined: Tue Jul 24, 2007 7:55 pm
Location: Pennsylvania, USA

Re: Can I have MIC when doing ALSA emulation

Postby Temüjin » Tue Dec 08, 2009 6:07 pm

igorzwx wrote:It may not work, if PortAudio was compiled with --disable-oss (or something like this).


This is not a concern. Ubuntu builds PortAudio with OSS enabled.

freedom
New Member
Posts: 8
Joined: Mon Dec 07, 2009 7:38 pm

Re: Can I have MIC when doing ALSA emulation

Postby freedom » Fri Dec 11, 2009 6:53 pm

I contacted one of qutecom developers and it seems that ...
Seems that OSS and ALSA support are both activated into phone engine by
default. (not sure oss support is functional)

Looking at libs/sound/src/linux/AudioDeviceManager.cpp, audio device
list is built with alsa .
(This why you cannot select OSS device in gui ...)
QuteCom lacks an AudioDeviceManager interface for OSS.
Laurent

So for now it is not possible :roll:

cesium
Developer
Posts: 902
Joined: Sun Aug 12, 2007 12:51 am

Re: Can I have MIC when doing ALSA emulation

Postby cesium » Sat Dec 12, 2009 3:11 am

Hmm.. If I could make such a file, maybe they'll accept it? Also, how about the possibility of trying PortAudio?

freedom
New Member
Posts: 8
Joined: Mon Dec 07, 2009 7:38 pm

Re: Can I have MIC when doing ALSA emulation

Postby freedom » Sat Dec 12, 2009 5:12 pm

Well, too many dependancies and -dev packages for me... :lol: (half a gigabyte)
I think i'll stick with Ekiga for now until qutecom developers include OSS support into their AudioDeviceManager.


Return to “Linux”

Who is online

Users browsing this forum: No registered users and 2 guests