Skip to content

error(no sound) over boundary time [src/pcm/pcm_dshare.c] #84

@syuuha

Description

@syuuha

there is an issue when we use pcm_dshare over boundary time,
eg. will be no sound after 12 hours

[src/pcm/pcm_dshare.c] Line 114:

[before]
/* calculate the size to transfer */
size = dshare->appl_ptr - dshare->last_appl_ptr;

[after]
/* calculate the size to transfer */
if (dshare->appl_ptr < dshare->last_appl_ptr)
size = dshare->appl_ptr + (pcm->boundary - dshare->last_appl_ptr);
else
size = dshare->appl_ptr - dshare->last_appl_ptr;

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions