We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
beep/speaker/speaker.go
Line 121 in b573886
Currently this returns the wrong values for an input of -1.
I believe this should fix it:
valInt16 = int16((-1<<15)+(val+1)/2*(1<<16-1))
https://play.golang.org/p/E-8wkFoIHQ3
The text was updated successfully, but these errors were encountered:
Fun fact, in the latest release of Oto the samples get converted back to floats. Maybe a better option to just pass raw float bytes to Oto and skip the conversion altogether.
Sorry, something went wrong.
No branches or pull requests
beep/speaker/speaker.go
Line 121 in b573886
Currently this returns the wrong values for an input of -1.
I believe this should fix it:
https://play.golang.org/p/E-8wkFoIHQ3
The text was updated successfully, but these errors were encountered: