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

Single metadata interface? #77

Open
azul3d-bot opened this issue Mar 6, 2016 · 3 comments
Open

Single metadata interface? #77

azul3d-bot opened this issue Mar 6, 2016 · 3 comments
Labels

Comments

@azul3d-bot
Copy link

Issue by slimsag
Wednesday Oct 01, 2014 at 19:10 GMT
Originally opened as azul3d-legacy/audio#7


I do not know for sure yet, but I imagine most audio files share similar metadata that we could provide a single interface to within the audio package.

@azul3d-bot
Copy link
Author

Comment by mdlayher
Wednesday Oct 01, 2014 at 19:38 GMT


I actually was going to request this feature, if you mean metadata in the form of tags, sample rate, bitrate, etc.

I actually did some work on a native Go tagging package, and I'd be happy to contribute what I've learned! https://github.com/mdlayher/taggolib

@azul3d-bot
Copy link
Author

Comment by slimsag
Wednesday Oct 01, 2014 at 21:54 GMT


I actually was going to request this feature, if you mean metadata in the form of tags, sample rate, bitrate, etc.

This issue would be just about metadata tags (i.e. author, title, track number, etc).

For bitrate I've made #8.

For sample rate and number of channels you can just look at the decoder's configuration:

dec, _, err := audio.NewDecoder(r)
handle(err)

conf := dec.Config()
fmt.Println("Sample Rate: %d Channels: %d\n", conf.SampleRate, conf.Channels)

@azul3d-bot
Copy link
Author

Comment by mdlayher
Wednesday Oct 01, 2014 at 22:01 GMT


Cool! Yeah, metadata tags would be perfect. Vorbis tags, at least, are very easy to parse. ID3 is a lot less sane.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant