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 342085 - [alsasink] doesn't set buffer-time correctly
[alsasink] doesn't set buffer-time correctly
Status: RESOLVED FIXED
Product: GStreamer
Classification: Platform
Component: gst-plugins-base
0.10.7
Other Linux
: Normal normal
: 0.10.9
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2006-05-17 05:54 UTC by Sebastian Dröge (slomo)
Modified: 2006-06-16 11:05 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Sebastian Dröge (slomo) 2006-05-17 05:54:23 UTC
Hi,
with gstreamer 0.10.6 / gst-plugins-base 0.10.7 the alsasink doesn't always get the buffer-time correct.

For example with an Aureal Vortex 2 the following happens:

terminates immediately:
GST_DEBUG=3 GST_DEBUG_NO_COLOR=1 gst-launch-0.10 filesrc location=smash.mp3 ! mad ! alsasink &> gst1.log
http://librarian.launchpad.net/2686912/gst1.log

plays but is distorted:
GST_DEBUG=3 GST_DEBUG_NO_COLOR=1 gst-launch-0.10 filesrc location=smash.mp3 ! mad ! alsasink buffer-time=200 &> gst2.log
http://librarian.launchpad.net/2686914/gst2.log

plays but has some audible clicks:
GST_DEBUG=3 GST_DEBUG_NO_COLOR=1 gst-launch-0.10 filesrc location=smash.mp3 ! mad ! alsasink buffer-time=1000 &> gst3.log
http://librarian.launchpad.net/2686921/gst3.log

Setting the buffer-time to 900 or 1100 makes it exit immediately too.

exits immediately:
GST_DEBUG=3 GST_DEBUG_NO_COLOR=1 gst-launch-0.10 audiotestsrc ! audioconvert ! alsasink &> gst4.log
http://librarian.launchpad.net/2686934/gst4.log

Bye

Ubuntu Bug: https://launchpad.net/distros/ubuntu/+source/gst-plugins-base0.10/+bug/44943
Comment 1 Wim Taymans 2006-06-16 11:05:59 UTC
Following patch should fix this, please reopen if it does not.

        * ext/alsa/gstalsasink.c: (set_hwparams):
        If we fail to set the buffer_time and period_time alsa
        parameters, post a warning and leave alsa select a
        default instead of failing. Fixes #342085