mirror of
https://github.com/vsariola/sointu.git
synced 2025-05-28 03:10:24 -04:00
fix(cmd/sointu-play): accidentally used := in inner scope, leading to nil error
This commit is contained in:
parent
803184cbe7
commit
0377cd4287
@ -41,7 +41,8 @@ func main() {
|
||||
}
|
||||
var audioContext sointu.AudioContext
|
||||
if *play {
|
||||
audioContext, err := oto.NewContext()
|
||||
var err error
|
||||
audioContext, err = oto.NewContext()
|
||||
if err != nil {
|
||||
fmt.Fprintf(os.Stderr, "could not acquire oto AudioContext: %v\n", err)
|
||||
os.Exit(1)
|
||||
|
Loading…
Reference in New Issue
Block a user