Skip to content

FLAC plugin's seek is not sample-accurrate #678

Closed

Description

@Wang-Yue

Perhaps other plugins share the same problem. but I just have chance to compare the wav and flac. This may also be the main cause of #600.

When playing a flac file from specific location(for instance 0:01, or even 0:00), the seeking location is wrong.

In my test, when asked to play from 0:01, it should output starting from location 176400(which is 4410022) of the raw pcm. but it actually start from location 202752, which missed a lot of samples. to fill the length sometimes redundant samples are copied. Which leads to the issue discussed in #600.

Opened this new bug since other plugins are affected too.

Activity

  1. mahkoh commented on Apr 22, 2017

    @mahkoh
    Member

    Afaik most formats simply don't support this kind of operation.

  2. Wang-Yue commented on Apr 22, 2017

    @Wang-Yue
    ContributorAuthor

    @mahkoh right, mp3 doesn't but no one saves entire cd image as mp3s. but libflac does support sample accurate seek. this is of vital importance to cue support. flac should have similar support compared to wav format's. and fast sample accurrate seek is one of the dominant feature of flac format/codec.

  3. mahkoh commented on Apr 22, 2017

    @mahkoh
    Member

    A patch implementing accurate seeking in the flac plugin would be accepted.

  4. Wang-Yue commented on Apr 22, 2017

    @Wang-Yue
    ContributorAuthor

    There's one other bug in cue.c. I'll post shortly.

  5. Wang-Yue commented on Apr 22, 2017

    @Wang-Yue
    ContributorAuthor

    done

  6. Wang-Yue commented on Apr 22, 2017

    @Wang-Yue
    ContributorAuthor

    fixed by #679

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions