After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 613852 - Audio loopback at 16khz produces "clicks"
Audio loopback at 16khz produces "clicks"
Status: RESOLVED NOTABUG
Product: GStreamer
Classification: Platform
Component: dont know
0.10.28
Other Linux
: Normal normal
: NONE
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2010-03-24 23:25 UTC by bernie
Modified: 2010-05-11 09:25 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description bernie 2010-03-24 23:25:36 UTC
On several HW/OS combinations, the following pypeline breaks produces "clicks" rather than the expected loopback from the microphone to the speaker:

  gst-launch-0.10 alsasrc ! audio/x-raw-int,rate=16000,channels=1,depth=16 ! wavenc ! decodebin ! autoaudiosink


Works on:

 * Lenovo x200s, Fedora 12 x86-64, gstreamer-0.10.28-2.fc12.x86_64

Breaks on:

 * OLPC XO-1, Fedora 11, gstreamer 0.10.26
 * OLPC XO-1, Fedora 11, gstreamer 0.10.28
 * Netbook with Intel HDA sound, running Ubuntu Karmic, gstreamer 0.10.28
 * Laptop with Intel HDA sound, running Ubuntu Jaunty, gstreamer 0.10.25

I'm not sure whether this is a gstreamer bug, alsa bug or sound driver bug.

This bug affects recording sound in a Sugar activity called Record. The bug is described in detail here:

  http://bugs.sugarlabs.org/ticket/1244
Comment 1 Stefan Sauer (gstreamer, gtkdoc dev) 2010-03-29 07:19:32 UTC
You can't decode the wav while still recording it. Can you do e.g.


gst-launch-0.10 alsasrc ! audio/x-raw-int,rate=16000,channels=1,depth=16 !
tee name=t ! queue ! wavenc ! filesink location record.wav t. ! queue ! autoaudiosink

This way you get recording + monitoring. If you want to show a level meter or spectrum analyzer you would plug them in the monitor chain 8that goes to autoaudiosink).
Comment 2 bernie 2010-04-27 03:05:17 UTC
Thanks, we've applied a similar workaround.

Though I don't understand why the same code was working fine on my laptop with Fedora 12 and not on the XO with Fedora 11.
Comment 3 Tim-Philipp Müller 2010-05-11 09:25:53 UTC
Changing from FIXED to NOTABUG, since nothing was really 'fixed'.