audio: change type of mix_buf and conv_buf
commit8dbd3d1795da6f39e90a911e9acaae74c9ff120d
authorVolker Rümelin <vr_qemu@t-online.de>
Fri, 24 Feb 2023 19:05:41 +0000 (24 20:05 +0100)
committerMarc-André Lureau <marcandre.lureau@redhat.com>
Mon, 6 Mar 2023 06:30:23 +0000 (6 10:30 +0400)
treea17b37e85c32f7052991dbf15535f7616ee31b9a
parent5140ad8279c746182c80fa867e0c3674250df5bc
audio: change type of mix_buf and conv_buf

Change the type of mix_buf in struct HWVoiceOut and conv_buf
in struct HWVoiceIn from STSampleBuffer * to STSampleBuffer.
However, a buffer pointer is still needed. For this reason in
struct STSampleBuffer samples[] is changed to *buffer.

This is a preparation for the next patch. The next patch will
add this line, which is not possible with the current struct
STSampleBuffer definition.

+        sw->resample_buf.buffer = hw->mix_buf.buffer + rpos2;

There are no functional changes.

Acked-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Signed-off-by: Volker Rümelin <vr_qemu@t-online.de>
Message-Id: <20230224190555.7409-1-vr_qemu@t-online.de>
audio/audio.c
audio/audio_int.h
audio/audio_template.h