StreamAlign
Description:
[ CCode ( has_construct_function = false ) ]
public StreamAlign (int rate, ClockTime alignment_threshold, ClockTime discont_wait)
public StreamAlign (int rate, ClockTime alignment_threshold, ClockTime discont_wait)
Allocate a new StreamAlign with the given configuration.
All processing happens according to sample rate rate
, until
set_rate is called with a new rate
. A
negative rate can be used for reverse playback.
alignment_threshold
gives the tolerance in nanoseconds after which a timestamp difference is considered a discontinuity. Once
detected, discont_wait
nanoseconds have to pass without going below the threshold again until the output buffer is marked as a
discontinuity. These can later be re-configured with
set_alignment_threshold and
set_discont_wait.
Parameters:
rate |
a sample rate |
alignment_threshold |
a alignment threshold in nanoseconds |
discont_wait |
discont wait in nanoseconds |
Returns:
a new StreamAlign. free with free. |