Skip to content

Cue positions at ~-1.0 are "invalid" #10993

Closed
@ywwg

Description

Bug Description

I noticed that in two of my tracks, the main cue point was not working. After some debugging, I discovered this is because the cue position rounds to -1.0, and in frame.h, -1.0 is the "kLegacyInvalidEnginePosition". Therefore the cue is considered invalid and ignored. It's not even possible to set a new cue position without using Reset / Cue Point. With some tracks, because of beat grid adjustments it is plausible that the main cue point is actually in the silence before the start. (I have some where it is an entire beat or two before the start.) In this case, it is very very close to 1 frame before the start, at position -1.049180327871.

Do we still need this invalid position value check? The comments mention backwards compatibility but it's not clear what situations this is needed. Could NaN or -INF be used instead?

In the meantime I can tweak the beatgrid of these tracks to avoid the problem.

Version

main branch

OS

Ubuntu 22.04

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions