Wim Taymans
2ee7cd15b3
smoother: avoid losing precision
...
Avoid losing precision by subtracting uint64 values before converting them to
doubles.
2010-09-07 12:07:24 +02:00
Lennart Poettering
2edb4df175
smoother: add comments about optimization recommendations from Jason Newton
2009-10-29 01:49:40 +01:00
Lennart Poettering
ff52588c7b
smoother: readd #ifdef protection
2009-08-05 03:52:15 +02:00
Lennart Poettering
5efb07281d
alsa: throw timing data away after device resume
2009-07-24 20:13:52 +02:00
Lennart Poettering
35a4a0baa8
enable debugging output based on if DEBUG_DATA macro is set
2009-04-07 00:41:45 +02:00
Lennart Poettering
7fc2382a0a
properly handle interpolation when queried x is left of last data position
2009-04-06 16:38:38 +02:00
Lennart Poettering
d035f4a3f3
Modify smoothing code to make cubic interpolation optional and allow 'quick fixups' on resuming
...
The primary reason for this change is to allow time graphs that do not
go through the origin and hence smoothing starting from the origin is
not desired. This change will allow passing time data into the smoother
while paused and then abruptly use that data without smoothing using the
'quick fixup' flag when resuming.
Primary use case is allowing recording time graphs where the data
recorded originates from a time before the stream was created. The
resulting graft will be shifted and should not be smoothened to go
through the origin.
2009-04-05 02:26:02 +02:00
Lennart Poettering
b712e7b13d
make sure to use 64bit rounding even on 32bit machines when converting to pa_usec_t
2008-10-24 04:34:10 +02:00
Lennart Poettering
33b186e74d
user lrint() and friends in inner loops instead of normal C casts to speed up a few things
2008-10-03 02:34:59 +02:00
Lennart Poettering
b7026bf248
add a few more gcc warning flags and fix quite a few problems found by doing so
2008-08-19 22:39:54 +02:00
Lennart Poettering
dcbb7f2680
convert to double only once, and make sure we can deal with negative results of -y
2008-06-26 18:49:02 +02:00
Lennart Poettering
dd8b909532
fix up if the smoother shall be resumed 'before' it was actually paused
2008-06-26 00:31:39 +02:00
Lennart Poettering
b4302cacf9
fix up monotonicity of input to _get() instead of hitting an assert
2008-06-26 00:29:59 +02:00
Lennart Poettering
2b112fe9db
add new function pa_smoother_reset()
2008-06-20 22:17:40 +02:00
Lennart Poettering
8ae83d618e
get rid of svn $ keywords
2008-06-18 23:23:21 +03:00
Lennart Poettering
045c1d602d
merge glitch-free branch back into trunk
...
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@2445 fefdeb5f-60dc-0310-8127-8f9354f1896f
2008-05-15 23:34:41 +00:00
Lennart Poettering
6e1f7bd144
properly deal with time pausing
...
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1977 fefdeb5f-60dc-0310-8127-8f9354f1896f
2007-10-29 16:38:57 +00:00
Lennart Poettering
a67c21f093
merge 'lennart' branch back into trunk.
...
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1971 fefdeb5f-60dc-0310-8127-8f9354f1896f
2007-10-28 19:13:50 +00:00