mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-20 23:36:38 +00:00
8242676dc2
When playing chained data the audio ringbuffer is released and then acquired again. This makes it reset the segbase/segdone variables, but the next sample will be scheduled to play in the next position (right after the sample from the previous media) and, as the segdone is at 0, the audiosink will wait the duration of this previous media before it can write and play the new data. What happens is this: pointer at 0, write to 698-1564, diff 698, segtotal 20, segsize 1764, base 0 it will have to wait the length of 698 samples before being able to write. In a regular sample playback it looks like: pointer at 677, write to 696-1052, diff 19, segtotal 20, segsize 1764, base 0 In this case it will write to the next available position and it doesn't need to wait or fill with silence. This solution is borrowed from pulsesink that resets the clock to start again from 0, which makes it reset the time_offset to the time of the last played sample. This is used to correct the place of writing in the ringbuffer to the new start (0 again) https://bugzilla.gnome.org/show_bug.cgi?id=737055 |
||
---|---|---|
.. | ||
.gitignore | ||
audio-channels.c | ||
audio-channels.h | ||
audio-format.c | ||
audio-format.h | ||
audio-info.c | ||
audio-info.h | ||
audio.c | ||
audio.def | ||
audio.h | ||
audio.vcproj | ||
audiofilter.vcproj | ||
gstaudiobasesink.c | ||
gstaudiobasesink.h | ||
gstaudiobasesrc.c | ||
gstaudiobasesrc.h | ||
gstaudiocdsrc.c | ||
gstaudiocdsrc.h | ||
gstaudioclock.c | ||
gstaudioclock.h | ||
gstaudiodecoder.c | ||
gstaudiodecoder.h | ||
gstaudioencoder.c | ||
gstaudioencoder.h | ||
gstaudiofilter.c | ||
gstaudiofilter.h | ||
gstaudioiec61937.c | ||
gstaudioiec61937.h | ||
gstaudiometa.c | ||
gstaudiometa.h | ||
gstaudiopack-dist.c | ||
gstaudiopack-dist.h | ||
gstaudiopack.orc | ||
gstaudioringbuffer.c | ||
gstaudioringbuffer.h | ||
gstaudiosink.c | ||
gstaudiosink.h | ||
gstaudiosrc.c | ||
gstaudiosrc.h | ||
Makefile.am | ||
streamvolume.c | ||
streamvolume.h | ||
TODO |