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

Sound #2

Open
eaburns opened this issue Jul 11, 2013 · 7 comments
Open

Sound #2

eaburns opened this issue Jul 11, 2013 · 7 comments
Labels

Comments

@eaburns
Copy link
Contributor

eaburns commented Jul 11, 2013

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

@eaburns
Copy link
Contributor Author

eaburns commented Jul 11, 2013

Here's Steve's demo WAV player: https://gist.github.com/eaburns/909a7339c6fab09d686b.

@mccoyst
Copy link
Contributor

mccoyst commented Jul 11, 2013

Here's an ogg player: https://gist.github.com/mccoyst/4c88cc144b010340869d

It may take effort to Go-ify the callback stuff.

@mccoyst
Copy link
Contributor

mccoyst commented Jul 12, 2013

@eaburns
Copy link
Contributor Author

eaburns commented Jul 12, 2013

Wonderful. Thanks!

@eaburns
Copy link
Contributor Author

eaburns commented Jul 12, 2013

For completeness, can you post package vorbis?

@mccoyst
Copy link
Contributor

mccoyst commented Jul 12, 2013

@ghost ghost assigned eaburns Jul 12, 2013
@eaburns eaburns mentioned this issue Jul 13, 2013
@eaburns
Copy link
Contributor Author

eaburns commented Sep 28, 2013

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
Labels
Projects
None yet
Development

No branches or pull requests

2 participants