-
Notifications
You must be signed in to change notification settings - Fork 2
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
Sound #2
Labels
Comments
Here's Steve's demo WAV player: https://gist.github.com/eaburns/909a7339c6fab09d686b. |
Here's an ogg player: https://gist.github.com/mccoyst/4c88cc144b010340869d It may take effort to Go-ify the callback stuff. |
Wonderful. Thanks! |
For completeness, can you post package vorbis? |
ghost
assigned eaburns
Jul 12, 2013
Merged
Also see https://github.com/eaburns/flac. It supports incremental decoding, so our mixer code should allow for that too. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
We need the ability to play wav, ogg, and flac files. One possible interface is:
func PlayWAV(path string, repeat bool) Sound
func PlayOGG(path string, repeat bool) Sound
func PlayFLAC(path string, repeat bool) Sound
// A sound that was played/is playing.
type Sound struct { ...unexported fields... }
func (Sound) IsPlaying() bool
func (Sound) StopPlaying() // remove from the mix
The text was updated successfully, but these errors were encountered: