浏览代码

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