Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Seek support #16

Closed
mewmew opened this issue Aug 11, 2016 · 6 comments
Closed

Seek support #16

mewmew opened this issue Aug 11, 2016 · 6 comments

Comments

@mewmew
Copy link
Member

mewmew commented Aug 11, 2016

From flac.go:

// TODO: Implement a Seek method.

Creating this issue to facilitate an open discussion on how we may implement audio seek support in the future. What do we need to keep in mind?

  • Performance?
  • How should the API look like?
  • Should we require a seek table to be present in the metadata?
  • Should we make use of the sync codes to seek when no seek table is present?
  • Will we require the underlying stream to implement io.Seeker?

Some notes from the x/audio proposal:

@rakyll wrote at golang/go#13432 (comment)

Seeking is often expensive, we may adopt an io.ReadSeeker-like interface to make Seek a standalone operation to put some more emphasis on its cost.

@varyoo
Copy link

varyoo commented Aug 11, 2016

Should we require a seek table to be present in the metadata?

from the FLAC specifications:

SEEKTABLE: This is an optional block for storing seek points.

@mewmew
Copy link
Member Author

mewmew commented Aug 16, 2018

A preliminary implementation exists in the dev branch for anyone brave enough to try it out :)

@tslocum
Copy link

tslocum commented Jan 28, 2020

I am glad to review and test the seek branch but I may also be able to contribute code changes. What work remains for seek support to be merged?

@mewmew
Copy link
Member Author

mewmew commented Jan 28, 2020

I am glad to review and test the seek branch but I may also be able to contribute code changes. What work remains for seek support to be merged?

Hi @tslocum,

I think @karlek has the best grasp of the seek code. He'll be out for the weekend, but should be back by next week.

Also, if you are interested in working on getting the seek code production ready that's great! We would definitely welcome such a contribution :)

Cheers,
Henry & Robin

@karlek
Copy link
Contributor

karlek commented Mar 16, 2020

Hi @tslocum

I apologize for my late response.

After looking at the code, I realize it's been a long time since it's was written and it's not up-to-par with the rest of the code base and should not be used. Therefore, if you'd like to contribute and implement seeking we would be very grateful.

Henry

@karlek
Copy link
Contributor

karlek commented Jan 23, 2021

Fixed in #44 by @cswank, great job! 🙌

@karlek karlek closed this as completed Jan 23, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants