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 337009 - props 'blocksize' and 'buffer-time' not functional in alsasrc
props 'blocksize' and 'buffer-time' not functional in alsasrc
Status: RESOLVED NOTABUG
Product: GStreamer
Classification: Platform
Component: gst-plugins-base
0.10.5
Other Linux
: Normal normal
: git master
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2006-04-03 09:33 UTC by Zeeshan Ali
Modified: 2006-05-14 10:52 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Zeeshan Ali 2006-04-03 09:33:38 UTC
Setting the properties blocksize and buffer-time doens't not effect the size of the buffers received on the src pad of alsasrc. I tested it using the following commandline and viewing the size of payloads on the UDP plackets using ethereal:

gst-launch-0.10 alsasrc buffer_time=20000 ! "audio/x-raw-int, channels=1, rate=8000" ! udpsink host=SOME_IP

or

gst-launch-0.10 alsasrc blocksize=320 ! "audio/x-raw-int, channels=1, rate=8000" ! udpsink host=SOME_IP

Since these props are inherited from the GstAudioSrc class, this bug might actually be there but i am not so sure about it.
Comment 1 Wim Taymans 2006-04-14 14:52:06 UTC
buffer-time is the value of the internal audio buffer and should not affect the buffer size of the output buffers.

blocksize does nothing for audio sources.

latency-time affects the size of the buffers correctly.

Note that not all sources might be able to adjust their latency-time, in the case of alsa dmix, that value is specified in the alsa configuration file and cannot be changed by an application.
Comment 2 Berti 2006-05-13 16:34:06 UTC
If the blocksize parameter does nothing for audio sources, why it is possible to try to change this value (at least for alsasrc ) using the parameter of the element ?

I think it may be confusing for a lot of people.
Comment 3 Jan Schmidt 2006-05-14 10:52:06 UTC
Because the blocksize parameter is provided by the BaseSrc base class, and there's no mechanism for sub-classes to disable it, even when they don't use it.

Making it possible for sub-classes to do that sounds useful to me.