Kaynağa Gözat

Move constant definitions

Daniel Salvadori 6 yıl önce
ebeveyn
işleme
13a2c9e55e
1 değiştirilmiş dosya ile 6 ekleme ve 0 silme
  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