Re: [PATCH 11/12] audio: fix sw->buf size for audio recording

2022-10-01 Thread Volker Rümelin
Am 27.09.22 um 13:54 schrieb Marc-André Lureau: On Fri, Sep 23, 2022 at 10:48 PM Volker Rümelin wrote: The calculation of the buffer size needed to store audio samples after resampling is wrong for audio recording. For audio recording sw->ratio is calculated as sw->ratio =

Re: [PATCH 11/12] audio: fix sw->buf size for audio recording

2022-09-27 Thread Marc-André Lureau
On Fri, Sep 23, 2022 at 10:48 PM Volker Rümelin wrote: > The calculation of the buffer size needed to store audio samples > after resampling is wrong for audio recording. For audio recording > sw->ratio is calculated as > > sw->ratio = frontend sample rate / backend sample rate. > > From this fol

[PATCH 11/12] audio: fix sw->buf size for audio recording

2022-09-23 Thread Volker Rümelin
The calculation of the buffer size needed to store audio samples after resampling is wrong for audio recording. For audio recording sw->ratio is calculated as sw->ratio = frontend sample rate / backend sample rate. >From this follows frontend samples = frontend sample rate / backend sample rate