mirror of
https://github.com/vsariola/sointu.git
synced 2025-06-04 01:28:45 -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
|
var audioContext sointu.AudioContext
|
||||||
if *play {
|
if *play {
|
||||||
audioContext, err := oto.NewContext()
|
var err error
|
||||||
|
audioContext, err = oto.NewContext()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
fmt.Fprintf(os.Stderr, "could not acquire oto AudioContext: %v\n", err)
|
fmt.Fprintf(os.Stderr, "could not acquire oto AudioContext: %v\n", err)
|
||||||
os.Exit(1)
|
os.Exit(1)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user