mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-04 13:30:12 -05:00
pw-cat: fix DSF playback again
Make the DSD buffers a little bigger because we scale down the rate. Read an interleaved number of samples to fill one quantum.
This commit is contained in:
parent
ebc775674a
commit
c48a4bc166
5 changed files with 15 additions and 5 deletions
|
|
@ -222,6 +222,8 @@ dsf_file_read(struct dsf_file *f, void *data, size_t samples, const struct dsf_l
|
|||
offset = block * f->info.blocksize * f->info.channels;
|
||||
pos = f->offset % f->info.blocksize;
|
||||
|
||||
samples *= step;
|
||||
|
||||
for (total = 0; total < samples && offset + pos < f->info.length; total++) {
|
||||
const uint8_t *s = f->p + offset + pos;
|
||||
uint32_t i;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue