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

Playing a file with a sample rate != 44100 does not work #33

Open
jfsantos opened this issue Nov 3, 2014 · 0 comments · May be fixed by #34
Open

Playing a file with a sample rate != 44100 does not work #33

jfsantos opened this issue Nov 3, 2014 · 0 comments · May be fixed by #34

Comments

@jfsantos
Copy link

jfsantos commented Nov 3, 2014

I am trying to play a file with a sample rate of 16 kHz (using data = open('"myfile16khz.wav"); play(data), but it fails with the following exception:

WARNING: Audio Task died with exception: ErrorException("assertion failed: node.file.sfinfo.samplerate == info.sample_rate")

Apparently, the default stream for playing files and arrays is always opened considering a sampling rate of 44100 Hz, but that's not always the case. When you play a file, I think it should use the sampling rate of the file, and for arrays, you should be able to pass the sampling rate as a parameter.

If someone can give me a clue on how I could do this, I'll be happy to submit a pull request implementing this behavior.

@jfsantos jfsantos closed this as completed Nov 3, 2014
@jfsantos jfsantos reopened this Nov 3, 2014
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

Successfully merging a pull request may close this issue.

1 participant