[gstreamer-bugs] [Bug 363119] New: [Audiorate] rounding errors cause 'clicking' in sound

GStreamer (bugzilla.gnome.org) bugzilla-daemon at bugzilla.gnome.org
Wed Oct 18 04:53:29 PDT 2006


Do not reply to this via email (we are currently unable to handle email
responses and they get discarded).  You can add comments to this bug at
http://bugzilla.gnome.org/show_bug.cgi?id=363119

  GStreamer | gst-plugins-base | Ver: HEAD CVS

           Summary: [Audiorate] rounding errors cause 'clicking' in sound
           Product: GStreamer
           Version: HEAD CVS
          Platform: Other
        OS/Version: Linux
            Status: UNCONFIRMED
          Severity: normal
          Priority: Normal
         Component: gst-plugins-base
        AssignedTo: gstreamer-bugs at lists.sourceforge.net
        ReportedBy: bilboed at bilboed.com
         QAContact: gstreamer-bugs at lists.sourceforge.net
     GNOME version: Unspecified
   GNOME milestone: Unspecified


Audiorate has rounding errors which lead to 'clicking' in outputted sound.

A simple audiotestsrc ! audiorate ! alsasink is enough to show that.

A solution to this problem is to:
1/ convert the expected offset into time
2/ calculate the difference between the incoming buffer and the expected time
3/ convert that difference to offset
4/ use the offset difference for all further calculation

This hides the rounding errors.


-- 
Configure bugmail: http://bugzilla.gnome.org/userprefs.cgi?tab=email




More information about the Gstreamer-bugs mailing list