mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-03 05:59:10 +00:00
audiotestsrc: Initialize all samples in wave=ticks mode
Previously samples were only initialized in 2 out of 3 cases. Probably fixes https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs/-/issues/337 Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/4475>
This commit is contained in:
parent
b8018dca60
commit
6c429a5891
1 changed files with 4 additions and 0 deletions
|
@ -953,6 +953,10 @@ gst_audio_test_src_create_tick_##type (GstAudioTestSrc * src, g##type * samples)
|
|||
src->accumulator = 0; \
|
||||
src->tick_counter++; \
|
||||
volscale = calc_scaled_tick_volume (src, scale); \
|
||||
for (c = 0; c < channels; ++c) { \
|
||||
*ptr = 0; \
|
||||
ptr += channel_step; \
|
||||
} \
|
||||
} else if (samplemod < num_nonzero_samples) { \
|
||||
gdouble ramp; \
|
||||
if (num_ramp_samples > 0) { \
|
||||
|
|
Loading…
Reference in a new issue