Skip to content

32bit regression #96

@zakk4223

Description

@zakk4223

I'm using lg4ff on an armv7l system (32bit) and it looks like this commit 2b865af
regressed the previous 32bit fix.

I'm getting what I think is the same behavior that was originally reported in #47. FF_CONSTANT direction is mostly ignored, wheel tends to rotate to the left no matter what. Same with FF_PERIODIC.

I've confirmed that changing the line to
parameters[0].level = (long)parameters[0].level * (int)gain / 0xffff;
fixes it. Not sure if that re-introduces the clipping problem tho.

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