mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-10-29 05:40:27 -04:00
audioconvert: use calculated random value
Use the calculated random value instead of making a new one.
This commit is contained in:
parent
637bc6f7c4
commit
c743f4936a
1 changed files with 1 additions and 1 deletions
|
|
@ -591,7 +591,7 @@ static inline void update_noise_sse2(struct convert *conv, uint32_t n_samples)
|
|||
case DITHER_METHOD_RECTANGULAR:
|
||||
for (n = 0; n < n_samples; n += 4) {
|
||||
in[0] = _MM_XORSHIFT_EPI32(r);
|
||||
out[0] = _mm_cvtepi32_ps(_MM_XORSHIFT_EPI32(r));
|
||||
out[0] = _mm_cvtepi32_ps(in[0]);
|
||||
out[0] = _mm_mul_ps(out[0], scale);
|
||||
_mm_store_ps(&noise[n], out[0]);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue