-
Notifications
You must be signed in to change notification settings - Fork 150
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
[ Issue #21 ] Adding Examples #23
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
just a few pedant changes in the commends, otherwise good :)
examples/mp3-playing.go
Outdated
) | ||
|
||
func main() { | ||
// Open first Sample File |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
no need to capitalize Sample
examples/mp3-playing.go
Outdated
// Open first Sample File | ||
f, err := os.Open("sample1.mp3") | ||
|
||
// Check for Errors when opening the file |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ditto about capitalizing Errors
examples/mp3-playing.go
Outdated
// Channel, which will signal the end of the playback. | ||
playing := make(chan struct{}) | ||
|
||
// Now we Play our Stream on the Speaker |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
*Streamer
Hi, thanks a lot for contributing this example! Other example suggestions would be:
|
Okay, i will correct the comments and add some more Examples. Maybe a specified folder for an example, so people can easily go build. |
Updated the Pull Reques and added a folder structure for the Examples |
Great! Thanks a lot for this. |
Thanks for merging, im now working on the ctrl example and effects example |
Adding some Examples
As requested here's the Pull Request for Issue #21 . Its just basic playing and i tried to keep the sample mp3 as small as possible (6,2kib) . Suggestions for more Examples ?