spa: fix volume plugin compilation

This commit is contained in:
Wim Taymans 2024-06-18 15:44:26 +02:00
parent f7d59bcea7
commit e3ffcbefb6

View file

@ -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;