You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is an incorrect usage of beep; in order to play multiple streams of audio at the same time, only one instance of play is called. You can use the Mix function https://github.com/faiface/beep/blob/master/compositors.go#L100 to create a Streamer that mixes the inputs together into a single stream
Hello. The following code would crash the process with this stack trace:
stacktrace.txt
I might be missing something obvious, however, just not to me. :)
The code:
package main
import (
"bytes"
"fmt"
"time"
"ui/assets"
)
func play() {
streamer, format, err := wav.Decode(bytes.NewReader(assets.ButtonClick))
if err != nil {
fmt.Println("failed to wav decide sfx:", err)
return
}
}
func main() {
play()
play()
}
The text was updated successfully, but these errors were encountered: