Explorar o código

Move constant definitions

Daniel Salvadori %!s(int64=6) %!d(string=hai) anos
pai
achega
13a2c9e55e
Modificáronse 1 ficheiros con 6 adicións e 0 borrados
  1. 6 0
      audio/audio_file.go

+ 6 - 0
audio/audio_file.go

@@ -15,6 +15,12 @@ import (
 	"unsafe"
 )
 
+const (
+	waveHeaderSize = 44
+	fileMark       = "RIFF"
+	fileHead       = "WAVE"
+)
+
 // AudioInfo represents the information associated to an audio file
 type AudioInfo struct {
 	Format     int     // OpenAl Format