Skip to content

Use rational numbers for resampler phase #15

@sdatkinson

Description

@sdatkinson

Using doubles in the resampler risks fp errors accumulating over time. This results in either lost samples (like #13) or could result in extra samples, which would cause the container's latency to slowly grow over time (ballpark 1 sample per hour, so a rate of 1e-8...not bad, but it coudl be perfect).

to fix, replace usage of mPhase as doubles with rationals (e.g. track their numerators and denominator explicitly).

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions