mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2026-04-30 06:46:49 -04:00
pw-cat: fix DSD file reading
Now that the server asks for the right amount of samples for DSD, just give it the right amount of samples without doing some weird scaling. Make a method to calculate the size (stride) of one sample, which depends on the interleave and channels of the stream. See !2540
This commit is contained in:
parent
f8389cbdb7
commit
19198d2982
5 changed files with 17 additions and 11 deletions
|
|
@ -24,6 +24,8 @@ struct dff_layout {
|
|||
bool lsb;
|
||||
};
|
||||
|
||||
uint32_t dff_layout_stride(const struct dff_layout *layout);
|
||||
|
||||
struct dff_file * dff_file_open(const char *filename, const char *mode, struct dff_file_info *info);
|
||||
|
||||
ssize_t dff_file_read(struct dff_file *f, void *data, size_t samples, const struct dff_layout *layout);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue