Problems playing stereo and 32-bit float samples using appsrc
Tim Müller
tim at centricular.com
Mon Dec 11 21:23:53 UTC 2017
On Mon, 2017-12-11 at 10:37 -0700, Albert Tomanek wrote:
Hi Albert,
Are you sure your buffers are properly timestamped and carry the right
duration?
Your num_samples calculation needs to account for the number of
channels as well, and your duration calculation should account for both
sample size and number of channels if I'm not mistaken (and ideally it
should calculate the timestamp for data->playback_offset+num_samples
and subtract the current timestamp from it, to avoid rounding errors.
Cheers
-Tim
--
Tim Müller, Centricular Ltd - http://www.centricular.com
More information about the gstreamer-devel
mailing list