You are not logged in.
Pages: 1
Hi all,
recently I needed to write sound from speakers and found, that my standard KDE setup with ALSA sound can't handle such mixing. It allowed only to record mic. I installed JACK, but there was another problem - Mumble (application which provides needed sound) works only with ALSA and OSS. On JACK only cracking noise is heard on any combination of audio settings possible (surely I have alsa-plugins installed). Apps such as Skype work well through ALSA plugin.
So I have two questions:
1) Any idea how to configure Mumble?
2) Is there any other relevant alternative to JACK, when playback/capture mixing is needed?
System specs: Arch x86_64, KDE 4.4.3, alsa-driver 1.0.21, jack (both native and 32bit), alsa-plugins (both native and 32bit).
Offline
To be completely clear, we are defining playback/capture mixing as for example, plugging your guitar amp into your soundcard's line-in, playing back some drums from hydrogen, and listening to the combined result of your drums and guitar over your headphones?
Well, ALSA definitely supports that so if that's all you're using JACK for, we ought to get things working without it.
I have no less than four soundcards connected to my computer (call me crazy...) and I have tested simultaneous playback/capture mixing on three of them (SB X-Fi, Terratec Phase26 USB, Logitech USB Headset) and they all work out of the box. So it's definitely doable.
An issue might be that your soundcard is half-duplex (only recording or playback, not both at the same time), or doesn't support hardware mixing (which can be remedied by a software mixer, though this might introduce undesirable latency).
So to start, can you give the output of
aplay -LLast edited by xenobrain (2010-05-29 14:56:08)
Offline
Looks like I haven't clearly explained ) The task is following: I have a program with streaming audio, which doesn't have builtin sound recording capability. I need to record its ALSA audio output (e.g. via Audacity). Theoretically recording from dmix should work, but it doesn't.
$ aplay -L
null
Discard all samples (playback) or generate zero samples (capture)
front:CARD=Intel,DEV=0
HDA Intel, AD198x Analog
Front speakers
surround40:CARD=Intel,DEV=0
HDA Intel, AD198x Analog
4.0 Surround output to Front and Rear speakers
surround41:CARD=Intel,DEV=0
HDA Intel, AD198x Analog
4.1 Surround output to Front, Rear and Subwoofer speakers
surround50:CARD=Intel,DEV=0
HDA Intel, AD198x Analog
5.0 Surround output to Front, Center and Rear speakers
surround51:CARD=Intel,DEV=0
HDA Intel, AD198x Analog
5.1 Surround output to Front, Center, Rear and Subwoofer speakers
surround71:CARD=Intel,DEV=0
HDA Intel, AD198x Analog
7.1 Surround output to Front, Center, Side, Rear and Woofer speakersI'm using integrated Intel audio card, which surely hasn't got any hardware mixing. The most interesting thing is that under Debian this task can be done out of box - there in alsamixer is a switch called "Input", where "Mix" can be selected.
Offline
For capturing streaming audio, do you know of streamripper in [extra]?
I tried capturing audio in audacity with both dmix and hw:0,0 from dragonplayer (using gstreamer as a phonon backend) which is enough layers it should be really buggy. Except that it worked perfectly on both inputs!
So there's nothing inherently wrong with doing that....
What program are you trying to capture from and what output is it using?
Also, are you using an .asoundrc or asound.conf file? (I don't use one myself)
Last edited by xenobrain (2010-05-29 19:29:51)
Offline
I'm trying to capture from Mumble (really it isn't a streaming app, but great thanks for streamripper) and record to recordmydesktop (material - online consultation, where image goes through VLC and sound through Mumble). I tried capturing from dmix and hw:0,0, but in both cases I got only mic sound. Looks like in mixer there should be setting like "device to use as input source", but I haven't found it even in alsamixer.
Yes, I'm using asound.conf, taken from JACK article in wiki. Again, this setup works even in Skype, only in Mumble I had problems with playback. I tried to google about it a lot, but people rather had problems with recording from mic )
$ cat /etc/asound.conf
# convert alsa API over jack API
# use it with
# % aplay foo.wav
# use this as default
pcm.!default {
type plug
slave { pcm "jack" }
}
ctl.mixer0 {
type hw
card 1
}
# pcm type jack
pcm.jack {
type jack
playback_ports {
0 system:playback_1
1 system:playback_2
}
capture_ports {
0 system:capture_1
1 system:capture_2
}
}Offline
Hmm...
Well, you could try this:
Open Mumble's configuration dialog (Configure->Settings). There is a checkbox called "advanced" in the lower-left corner. Check it, and a new option "Audio Output" will appear.
You should be able to set the output system to JACK, then specify which device to output to. Then you should be able to check "Use JACK for audio capture" in recordmydesktop, and pick the device.
Same goes for using ALSA as the output system, you can specifically pipe it through a device called something like [dmix:CARD=Intel,DEV=0] HDA Intel, AD198x Analog, Front/WaveIn Direct Sample Mixing Device and then type in dmix as your recording device in recordmydesktop.
And if you do use dmix to record, for toubleshooting purposes it would probably be best to disable JACK and remove/rename your asound.conf and use default settings.
Finally, have you tried recording mumble in Audacity or another program? Recordmydesktop has some known problems with sound recording, I realize you said Skype works fine, but it would be interesting for troubleshooting purposes to see if another recorder can capture mumble's output.
Offline
Pages: 1