diff options
author | Sebastian Dröge <slomo@circular-chaos.org> | 2008-01-27 07:37:40 +0000 |
---|---|---|
committer | Sebastian Dröge <slomo@circular-chaos.org> | 2008-01-27 07:37:40 +0000 |
commit | 26b4a028d98811c91740b48fbaf461aba77a083d (patch) | |
tree | 306599c89179bb38a65ed579cd9586bc6e2585ad /ext/soundtouch/gstpitch.hh | |
parent | 5b791c2ce5b905e8a0521732dc9c08f85551520d (diff) | |
download | gst-plugins-bad-26b4a028d98811c91740b48fbaf461aba77a083d.tar.gz gst-plugins-bad-26b4a028d98811c91740b48fbaf461aba77a083d.tar.bz2 gst-plugins-bad-26b4a028d98811c91740b48fbaf461aba77a083d.zip |
ext/soundtouch/gstpitch.*: Implement LATENCY query and notify about latency changes.
Original commit message from CVS:
* ext/soundtouch/gstpitch.cc:
* ext/soundtouch/gstpitch.hh:
Implement LATENCY query and notify about latency changes.
Unfortunately we don't have a fixed latency but it changes
a bit with each buffer so we only send an LATENCY event with
the maximum latency if it changes.
Always calculate the timestamp, duration, etc from the sample
rate instead of using a pre-calculated duration for one sample
to prevent large rounding errors.
Diffstat (limited to 'ext/soundtouch/gstpitch.hh')
-rw-r--r-- | ext/soundtouch/gstpitch.hh | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ext/soundtouch/gstpitch.hh b/ext/soundtouch/gstpitch.hh index 24d42ba2..32cb04dd 100644 --- a/ext/soundtouch/gstpitch.hh +++ b/ext/soundtouch/gstpitch.hh @@ -67,12 +67,13 @@ struct _GstPitch gint samplerate; /* samplerate */ gint channels; /* number of audio channels */ gsize sample_size; /* number of bytes for a single sample */ - GstClockTime sample_duration; /* time for 1 sample */ /* stream tracking */ GstClockTime next_buffer_time; gint64 next_buffer_offset; + GstClockTimeDiff min_latency, max_latency; + GstPitchPrivate *priv; }; |