[gstreamer-bugs] [Bug 347554] New: Alsasink not properly working with uClibc

GStreamer (bugzilla.gnome.org) bugzilla-daemon at bugzilla.gnome.org
Fri Jul 14 14:08:43 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=347554
 GStreamer | gst-plugins-base | Ver: 0.10.9

           Summary: Alsasink not properly working with uClibc
           Product: GStreamer
           Version: 0.10.9
          Platform: Other
        OS/Version: All
            Status: UNCONFIRMED
          Severity: normal
          Priority: Normal
         Component: gst-plugins-base
        AssignedTo: gstreamer-bugs at lists.sourceforge.net
        ReportedBy: jean-marie.verdun at splitted-desktop.org
         QAContact: gstreamer-bugs at lists.sourceforge.net
     GNOME version: Unspecified
   GNOME milestone: Unspecified


Please describe the problem:
Hi, 

Alsasink is producing really poor sound with uClibc, I am tracking this issue
and believe that it is standing into the C library, but need some help to
confirm it. Basically, the test gst-launch audiotestsrc ! aslsasink produce
cranky sound. I have a really really stranfe work around which is to add some
printf into the gst_alsasink_write function.

  cptr = length / alsa->bytes_per_sample;
  ptr = data;
  printf("alsa rate %d\n",alsa->rate);
  printf("alsa channel %d\n",alsa->channels);
  printf("alsa byte %d\n",alsa->bytes_per_sample);
  printf("alsa time %d\n",alsa->buffer_time);
  printf("alsa period %d\n",alsa->period_time);
  printf("alsa siz %d\n",alsa->buffer_size);
  printf("alsa per siz %d\n",alsa->period_size);
  GST_ALSA_LOCK (asink);
  while (cptr > 0) {
    err = snd_pcm_writei (alsa->handle, ptr, cptr);
In that case redirecting the output of the command to /dev/null produce good
sound. I believe that the printf is inserting some synchronisation stuff, but I
have some issue to find out why and what could be involved into the program.

Jm

Steps to reproduce:
1. You need a uClibc environment
2. install gstreamer-0.10.9 and gst-plugins-base-0.10.9
3. run gst-launch audiotestsrc ! alsasink


Actual results:
Sound is strating to play for less than a second and get really bad

Expected results:


Does this happen every time?
yes

Other information:
I am running with an ATI based system, with kernel 2.6.16.23 and it's included
kernel.
If needed I can provide a bootable CD with the uClibc environment, or a way to
build it.


-- 
Configure bugmail: http://bugzilla.gnome.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.




More information about the Gstreamer-bugs mailing list