mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-22 00:06:36 +00:00
tests/check/elements/audioresample.c: avoid implict int ot float conversion
Also use doubles instead so the calculation won't overflow Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-base/-/merge_requests/773>
This commit is contained in:
parent
31d683d59e
commit
66ff1eedca
1 changed files with 2 additions and 2 deletions
|
@ -1172,8 +1172,8 @@ FILL_BUFFER (double, sine, sin (i * 0.01));
|
|||
FILL_BUFFER (double, sine2, sin (i * 1.8));
|
||||
FILL_BUFFER (gint16, sine, (gint16) (32767 * sinf (i * 0.01f)));
|
||||
FILL_BUFFER (gint16, sine2, (gint16) (32767 * sinf (i * 1.8f)));
|
||||
FILL_BUFFER (gint32, sine, (gint32) (2147483647 * sinf (i * 0.01f)));
|
||||
FILL_BUFFER (gint32, sine2, (gint32) (2147483647 * sinf (i * 1.8f)));
|
||||
FILL_BUFFER (gint32, sine, (gint32) (2147483647.0 * sin (i * 0.01)));
|
||||
FILL_BUFFER (gint32, sine2, (gint32) (2147483647.0 * sin (i * 1.8)));
|
||||
|
||||
static void
|
||||
run_fft_pipeline (int inrate, int outrate, int quality, int width,
|
||||
|
|
Loading…
Reference in a new issue