Skip to content

fix: increasing biquad filter frequency on sound with slowed play speed causes crash #304

@NTayloe

Description

@NTayloe

Description

If you slow the relative play speed of a sound and increase the frequency (within the 10 to 16000 range) of the biquad resonant filter (or vice versa) there is a loud blip and then (usually) soloud crashes.

Expected Behavior

Since we can't extract the sample rate of audio from flutter_soloud (that I know of) it isn't easy to calculate the proper max frequency/play speed ratio on our end without using other packages. It would be nice if these calculations were automatically done when adjusting either the speed or biquad filter frequency to avoid invalid values that cause the blip and crash.

I'm not sure if this type of mistake is flutter_soloud's responsibility to avoid or if its something I should be keeping track of when users adjust these values, but I thought I'd bring it up in case it isn't known about.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions