Explorar o código

Only enable audio on desktop for now

Daniel Salvadori %!s(int64=6) %!d(string=hai) anos
pai
achega
3d1a1d1a0d
Modificáronse 4 ficheiros con 8 adicións e 0 borrados
  1. 2 0
      audio/audio_file.go
  2. 2 0
      audio/listener.go
  3. 2 0
      audio/player.go
  4. 2 0
      audio/wave.go

+ 2 - 0
audio/audio_file.go

@@ -2,6 +2,8 @@
 // Use of this source code is governed by a BSD-style
 // license that can be found in the LICENSE file.
 
+// +build !wasm
+
 package audio
 
 import (

+ 2 - 0
audio/listener.go

@@ -2,6 +2,8 @@
 // Use of this source code is governed by a BSD-style
 // license that can be found in the LICENSE file.
 
+// +build !wasm
+
 package audio
 
 import (

+ 2 - 0
audio/player.go

@@ -2,6 +2,8 @@
 // Use of this source code is governed by a BSD-style
 // license that can be found in the LICENSE file.
 
+// +build !wasm
+
 package audio
 
 // #include <stdlib.h>

+ 2 - 0
audio/wave.go

@@ -2,6 +2,8 @@
 // Use of this source code is governed by a BSD-style
 // license that can be found in the LICENSE file.
 
+// +build !wasm
+
 package audio
 
 import (