ソースを参照

Move constant definitions

Daniel Salvadori 6 年 前
コミット
13a2c9e55e
1 ファイル変更6 行追加0 行削除
  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