mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-24 09:10:36 +00:00
ext/alsa/gstalsasink.c: basesink calculates silence sample correctly for us.
Original commit message from CVS: * ext/alsa/gstalsasink.c: (set_hwparams), (gst_alsasink_prepare): basesink calculates silence sample correctly for us.
This commit is contained in:
parent
46d86d8005
commit
ebc88d77c4
2 changed files with 5 additions and 4 deletions
|
@ -1,3 +1,8 @@
|
||||||
|
2006-07-12 Wim Taymans <wim@fluendo.com>
|
||||||
|
|
||||||
|
* ext/alsa/gstalsasink.c: (set_hwparams), (gst_alsasink_prepare):
|
||||||
|
basesink calculates silence sample correctly for us.
|
||||||
|
|
||||||
2006-07-12 Wim Taymans <wim@fluendo.com>
|
2006-07-12 Wim Taymans <wim@fluendo.com>
|
||||||
|
|
||||||
* gst-libs/gst/audio/gstringbuffer.c: (build_linear_format),
|
* gst-libs/gst/audio/gstringbuffer.c: (build_linear_format),
|
||||||
|
|
|
@ -657,10 +657,6 @@ gst_alsasink_prepare (GstAudioSink * asink, GstRingBufferSpec * spec)
|
||||||
alsa->bytes_per_sample = spec->bytes_per_sample;
|
alsa->bytes_per_sample = spec->bytes_per_sample;
|
||||||
spec->segsize = alsa->period_size * spec->bytes_per_sample;
|
spec->segsize = alsa->period_size * spec->bytes_per_sample;
|
||||||
spec->segtotal = alsa->buffer_size / alsa->period_size;
|
spec->segtotal = alsa->buffer_size / alsa->period_size;
|
||||||
spec->silence_sample[0] = 0;
|
|
||||||
spec->silence_sample[1] = 0;
|
|
||||||
spec->silence_sample[2] = 0;
|
|
||||||
spec->silence_sample[3] = 0;
|
|
||||||
|
|
||||||
return TRUE;
|
return TRUE;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue