Skip to content

44.1khz FLAC seek issue #133

@kav1903

Description

@kav1903

Hi, really love the library minus one small quirk I'm noticing. When I seek a 44.1khz FLAC song it seems to seek to the wrong frame, which then propagates all the way to the end where the song plays past its duration. Only happens when I seek and only on FLAC, more specifically 44.1khz FLAC. If I play the song in its entirety without seeking it plays fine. I've tried m4a files and those work fine even with seek.

Compared with other players that support FLAC like IINA, VLC, and SFBAudioEngine and noticed that the player is behind by a few seconds when seeking. So say I seek to 1:13 using the AudioStreaming library, it seeks to where all the other players would be at like 1:09. So naturally the song also ends up finishing past its stated duration.

Thanks for spending the time on this and please let me know if this is a known issue or if there's something wrong with how seek works on FLAC.

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