Files
wehub-resource-sync ead81af521
Deploy to GitHub Pages / deploy (push) Failing after 0s
CI / go (push) Has been cancelled
CI / build (darwin, macos-14) (push) Has been cancelled
CI / build (windows, windows-2025) (push) Has been cancelled
chore: import upstream snapshot with attribution
2026-07-13 12:31:13 +08:00

21 lines
687 B
Go

// player/audio_device_stub.go — fallback for platforms without device selection support.
//go:build !linux && (!darwin || ios || !cgo) && !windows
package player
import "fmt"
// ListAudioDevices is not available on this platform.
func ListAudioDevices() ([]AudioDevice, error) {
return nil, fmt.Errorf("audio device selection is not available on this platform")
}
// PrepareAudioDevice is a no-op on unsupported platforms.
func PrepareAudioDevice(device string) func() { return func() {} }
// SwitchAudioDevice is not supported on this platform.
func SwitchAudioDevice(deviceName string) error {
return fmt.Errorf("audio device switching is not available on this platform")
}