Re: [PATCH 3/3] sandbox: fix sound driver

2022-12-05 Thread Simon Glass
On Mon, 5 Dec 2022 at 09:53, Heinrich Schuchardt wrote: > > In the callback function we have to use memcpy(). Otherwise we add > the new samples on top of what is stored in the stream buffer. > > If we don't have enough data, zero out the rest of the stream buffer. > > Our sampling frequency is 48

[PATCH 3/3] sandbox: fix sound driver

2022-12-04 Thread Heinrich Schuchardt
In the callback function we have to use memcpy(). Otherwise we add the new samples on top of what is stored in the stream buffer. If we don't have enough data, zero out the rest of the stream buffer. Our sampling frequency is 48000. Let the batch size for the callback function be 960. If we play