mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-02 09:01:50 -05:00
dsd: show rate in bytes per seconds.
This commit is contained in:
parent
1c3802bd82
commit
0ec77ab09c
3 changed files with 9 additions and 10 deletions
|
|
@ -69,7 +69,7 @@ static void on_process(void *userdata)
|
|||
if ((d = buf->datas[0].data) == NULL)
|
||||
return;
|
||||
|
||||
stride = data->info.channels * data->layout.interleave;
|
||||
stride = data->info.channels * SPA_ABS(data->layout.interleave);
|
||||
|
||||
samples = dsf_file_read(data->f, d, buf->datas[0].maxsize / stride,
|
||||
&data->layout);
|
||||
|
|
@ -127,7 +127,6 @@ struct layout_info {
|
|||
uint32_t type;
|
||||
struct spa_audio_layout_info info;
|
||||
};
|
||||
|
||||
static const struct layout_info layouts[] = {
|
||||
{ 1, { SPA_AUDIO_LAYOUT_Mono, }, },
|
||||
{ 2, { SPA_AUDIO_LAYOUT_Stereo, }, },
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue