|
1 | 1 | /*
|
2 |
| - * Copyright (C) 2020 Linux Studio Plugins Project <https://lsp-plug.in/> |
3 |
| - * (C) 2020 Vladimir Sadovnikov <[email protected]> |
| 2 | + * Copyright (C) 2025 Linux Studio Plugins Project <https://lsp-plug.in/> |
| 3 | + * (C) 2025 Vladimir Sadovnikov <[email protected]> |
4 | 4 | *
|
5 | 5 | * This file is part of lsp-dsp-lib
|
6 | 6 | * Created on: 13 дек. 2020 г.
|
@@ -107,8 +107,8 @@ UTEST_BEGIN("dsp.interpolation", linear)
|
107 | 107 | FloatBuffer dst2(dst1);
|
108 | 108 |
|
109 | 109 | // Call functions
|
110 |
| - func1(dst1, -1, 0.0f, 3, 0.1f, 1, count); |
111 |
| - func2(dst2, -1, 0.0f, 3, 0.1f, 1, count); |
| 110 | + func1(dst1, -1, 0.0f, 3, 0.1f, 1, uint32_t(count)); |
| 111 | + func2(dst2, -1, 0.0f, 3, 0.1f, 1, uint32_t(count)); |
112 | 112 |
|
113 | 113 | UTEST_ASSERT_MSG(dst1.valid(), "Destination buffer 1 corrupted");
|
114 | 114 | UTEST_ASSERT_MSG(dst2.valid(), "Destination buffer 2 corrupted");
|
@@ -146,8 +146,8 @@ UTEST_BEGIN("dsp.interpolation", linear)
|
146 | 146 | FloatBuffer dst2(dst1);
|
147 | 147 |
|
148 | 148 | // Call functions
|
149 |
| - func1(dst1, src, -1, 0.0f, 3, 0.1f, 1, count); |
150 |
| - func2(dst2, src, -1, 0.0f, 3, 0.1f, 1, count); |
| 149 | + func1(dst1, src, -1, 0.0f, 3, 0.1f, 1, uint32_t(count)); |
| 150 | + func2(dst2, src, -1, 0.0f, 3, 0.1f, 1, uint32_t(count)); |
151 | 151 |
|
152 | 152 | UTEST_ASSERT_MSG(src.valid(), "Source buffer corrupted");
|
153 | 153 | UTEST_ASSERT_MSG(dst1.valid(), "Destination buffer 1 corrupted");
|
@@ -188,8 +188,8 @@ UTEST_BEGIN("dsp.interpolation", linear)
|
188 | 188 | FloatBuffer dst2(count, align, mask & 0x04);
|
189 | 189 |
|
190 | 190 | // Call functions
|
191 |
| - func1(dst1, src1, src2, -1, 0.0f, 3, 0.1f, 1, count); |
192 |
| - func2(dst2, src1, src2, -1, 0.0f, 3, 0.1f, 1, count); |
| 191 | + func1(dst1, src1, src2, -1, 0.0f, 3, 0.1f, 1, uint32_t(count)); |
| 192 | + func2(dst2, src1, src2, -1, 0.0f, 3, 0.1f, 1, uint32_t(count)); |
193 | 193 |
|
194 | 194 | UTEST_ASSERT_MSG(src1.valid(), "Source buffer 1 corrupted");
|
195 | 195 | UTEST_ASSERT_MSG(src2.valid(), "Source buffer 2 corrupted");
|
|
0 commit comments