GNOME Bugzilla – Bug 346527
alsasrc get_range does not respect requested size
Last modified: 2006-07-06 16:03:25 UTC
Please describe the problem: alsasrc get_range does not respect requested size Steps to reproduce: 1. run the python app attached 2. 3. Actual results: get a 7520 byte buffer Expected results: get a 100 byte buffer Does this happen every time? Other information:
Created attachment 68340 [details] sample app
First part of solution. Will attach an updated example app. * gst-libs/gst/audio/gstbaseaudiosrc.c: (gst_base_audio_src_class_init), (gst_base_audio_src_init), (gst_base_audio_src_set_clock), (gst_base_audio_src_provide_clock), (gst_base_audio_src_get_time), (gst_base_audio_src_check_get_range), (gst_base_audio_src_create), (gst_base_audio_src_create_ringbuffer): Fix latency and buffer-time constants and properties ala basesink. Implement pull based scheduling. Fixes #346527. Set default blocksize in GstBaseSrc to 0, we default to pushing out one segment. Refuse slaving to another clock instead of silently not working. Only provide a clock when we are actually able to do so. Various small cleanups and compiler hints.
Created attachment 68478 [details] [review] updated example. updated example, activating a pad in pull mode needs this sequence.