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

GStreamer (bugzilla.gnome.org) bugzilla-daemon at bugzilla.gnome.org
Sun Jul 16 12:49:56 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


jean-marie verdun changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Severity|normal                      |critical
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |FIXED




------- Comment #1 from jean-marie verdun  2006-07-16 19:49 UTC -------
Hi,

I have fixed the problem, the behavior of
Hi,

I have fixed the issue, by modifying the gstalsasink.c file, this is done
through:
  /* now get the configured values */
  alsa->buffer_size=snd_pcm_hw_params_get_buffer_size (params,
&alsa->buffer_size);
//  CHECK (snd_pcm_hw_params_get_buffer_size (params, &alsa->buffer_size),
//      buffer_size);
  alsa->period_size=snd_pcm_hw_params_get_period_size (params, &size, &dir);
//  CHECK (snd_pcm_hw_params_get_period_size (params, &alsa->period_size,
&dir),
//      period_size);

The snd_pcm_hw_params_get_buffer_size function doesn't set properly the value
on uClibc, this need more investigation. I will post a message on ALSA mailing
list.

Jean-Marie



(In reply to comment #0)
> 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