[Bug 673977] Use pulseaudio stream time for the pulsesrc clock
GStreamer (bugzilla.gnome.org)
bugzilla at gnome.org
Mon Apr 16 08:22:31 PDT 2012
https://bugzilla.gnome.org/show_bug.cgi?id=673977
GStreamer | gst-plugins-good | 0.10.x
--- Comment #2 from Mohammed Sameer <msameer at foolab.org> 2012-04-16 15:22:25 UTC ---
Created an attachment (id=212149)
--> (https://bugzilla.gnome.org/attachment.cgi?id=212149)
Test case
I can only measure it if I use an arm board but not on the desktop.
I'm attaching a simple test case (Build via: gcc -o pulsesrctest pulsesrctest.c
`pkg-config --cflags --libs gstreamer-0.10`)
The test case tries 30 times per second to get the time from the pipeline clock
and the time from the system monotonic clock and calculates the difference to
the previous value and prints it.
Here are the values of the original element:
0 0 0
35 0 -35
33 0 -33
33 22 -11
33 79 46
33 0 -33
33 73 40
33 34 1
33 59 26
33 0 -33
33 0 -33
33 67 34
33 33 0
33 0 -33
33 70 37
34 0 -34
33 89 56
33 11 -22
38 60 22
35 0 -35
34 0 -34
33 75 42
33 15 -18
33 0 -33
33 69 36
36 0 -36
33 85 52
33 0 -33
33 85 52
33 0 -33
36 0 -36
33 85 52
33 10 -23
33 0 -33
33 75 42
36 0 -36
33 85 52
33 3 -30
34 81 47
33 0 -33
34 0 -34
33 85 52
33 17 -16
33 0 -33
33 73 40
36 79 43
33 0 -33
33 11 -22
33 0 -33
33 74 41
36 0 -36
33 85 52
33 23 -10
33 0 -33
33 73 40
36 73 37
33 0 -33
36 18 -18
And here are the values after patching pulsesrc:
0 0 0
33 33 0
33 33 0
33 33 0
33 34 1
34 35 1
37 40 3
33 36 3
33 36 3
33 37 4
33 38 5
36 40 4
33 36 3
33 34 1
33 34 1
33 33 0
35 34 -1
33 31 -2
33 31 -2
35 32 -3
33 30 -3
33 30 -3
33 30 -3
33 30 -3
33 31 -2
34 32 -2
33 31 -2
33 31 -2
33 31 -2
33 31 -2
33 32 -1
33 31 -2
36 34 -2
33 32 -1
33 32 -1
37 36 -1
35 34 -1
33 32 -1
36 35 -1
33 32 -1
36 35 -1
33 32 -1
36 36 0
33 32 -1
33 32 -1
33 33 0
33 33 0
33 33 0
33 33 0
33 33 0
36 36 0
33 33 0
33 33 0
33 33 0
33 33 0
36 37 1
33 33 0
33 33 0
As you can see, the difference between both clocks after patching pulsesrc is
more uniform.
--
Configure bugmail: https://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