Files
Volker Rümelin 7bef4a939a sound: Fix pointer arithmetic in snd_record_handle_write()
The variable 'now' counts in audio sample frames, but the variable
'data' is of type uint8_t *. Multiply 'now' by the size of an audio
sample frame to get the correct source pointer.

This improves the quality of audio recordings in QEMU a little bit.

Fixes: 5d5a7bd181 ("sound: Avoid cast that could cause alignment problems")

Signed-off-by: Volker Rümelin <[email protected]>
Acked-by: Frediano Ziglio <[email protected]>
(cherry picked from commit a5d1d957d6c16e3fe213e10d0cab4bfe2504ba91)
2026-09-22 18:54:27 -05:00
..
2022-03-04 20:43:19 -08:00
2017-03-30 18:17:20 +01:00
2020-02-26 13:01:43 +00:00
2019-07-11 09:37:34 +01:00
2020-02-26 13:01:43 +00:00
2018-06-18 13:40:51 +01:00
2020-02-26 13:01:43 +00:00
2017-03-30 18:17:20 +01:00
2017-03-30 18:17:20 +01:00
2019-04-30 09:26:55 +01:00
2017-03-30 18:17:20 +01:00
2019-04-30 09:26:55 +01:00
2017-10-21 08:47:02 +01:00
2020-02-26 13:01:43 +00:00
2020-02-26 13:01:43 +00:00
2017-03-30 18:17:20 +01:00
2017-03-30 18:17:20 +01:00
2020-02-26 13:01:43 +00:00
2022-03-04 20:43:23 -08:00
2017-11-21 08:38:44 +00:00
2014-11-27 14:27:18 +01:00
2014-11-27 14:27:18 +01:00
2017-03-30 18:17:20 +01:00
2016-11-10 06:37:15 +00:00
2017-03-30 18:17:20 +01:00
2017-03-30 18:17:20 +01:00
2019-04-30 09:26:55 +01:00
2019-04-30 09:26:55 +01:00
2017-03-30 18:17:20 +01:00
2019-04-30 09:26:55 +01:00
2019-04-30 09:26:55 +01:00
2017-03-30 18:17:20 +01:00