Selaa lähdekoodia

Only enable audio on desktop for now

Daniel Salvadori 6 vuotta sitten
vanhempi
commit
3d1a1d1a0d
4 muutettua tiedostoa jossa 8 lisäystä ja 0 poistoa
  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 (