mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-10-29 05:40:27 -04:00
spa: fix volume plugin compilation
This commit is contained in:
parent
f7d59bcea7
commit
e3ffcbefb6
1 changed files with 1 additions and 1 deletions
|
|
@ -651,7 +651,7 @@ static void do_volume(struct impl *this, struct spa_buffer *dbuf, struct spa_buf
|
|||
|
||||
n_samples = n_bytes / sizeof(int16_t);
|
||||
for (i = 0; i < n_samples; i++)
|
||||
dst[i] = src[i] * volume;
|
||||
dst[i] = (int16_t)(src[i] * volume);
|
||||
|
||||
sindex += n_bytes;
|
||||
dindex += n_bytes;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue