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

wav.Reader properties are private #8

Closed
xeoncross opened this issue Dec 18, 2016 · 1 comment
Closed

wav.Reader properties are private #8

xeoncross opened this issue Dec 18, 2016 · 1 comment

Comments

@xeoncross
Copy link
Contributor

xeoncross commented Dec 18, 2016

The wav.Reader struct doesn't expose any of the file meta data like wav.Duration or wav.bytesPerSample. Currently, you have to call .String() retrieve that information. Am I missing something?

r, _ := regexp.Compile("(\\d+) Hz")
sampleRate := r.FindString(wavReader.String())
fmt.Printf("sampleRate '%s'\n", sampleRate[:len(sampleRate)-3])
@cryptix
Copy link
Owner

cryptix commented Jan 4, 2017

Hey, I guess this is superseded by #9? If not, please reopen.

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

No branches or pull requests

2 participants