commit 075de28390e236d09e8640665574fc8060d3bc77
parent bf384e6e4d66b1db0f82ac9dd046dcf962b00181
Author: Jack Mordaunt <jackmordaunt.dev@gmail.com>
Date: Wed, 16 Sep 2026 21:25:30 -0400
audio: exclude Windows from the ffmpeg fallback build constraint
The Windows implementation became pure Go and lost its cgo requirement,
but the fallback file still activated on !cgo for every OS. Building on
Windows with CGO_ENABLED=0 therefore compiled both files and failed on
duplicate declarations of play, load, decode, start and end.
Diffstat:
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/audio_unknown.go b/audio_unknown.go
@@ -1,6 +1,7 @@
-//go:build !(windows || darwin || linux) || !cgo
+//go:build !windows && (!(darwin || linux) || !cgo)
// Shell out to ffmpeg if either the OS is unknown or cgo is disabled.
+// Windows is pure Go and never falls through to this file.
package nativeaudio