44 lines
794 B
Go
44 lines
794 B
Go
package wav
|
|
|
|
type Metadata struct {
|
|
SamplerInfo *SamplerInfo
|
|
Artist string
|
|
Comments string
|
|
Copyright string
|
|
CreationDate string
|
|
Engineer string
|
|
Technician string
|
|
Genre string
|
|
Keywords string
|
|
Medium string
|
|
Title string
|
|
Product string
|
|
Subject string
|
|
Software string
|
|
Source string
|
|
Location string
|
|
TrackNbr string
|
|
CuePoints []*CuePoint
|
|
}
|
|
|
|
type SamplerInfo struct {
|
|
Manufacturer [4]byte
|
|
Product [4]byte
|
|
SamplePeriod uint32
|
|
MIDIUnityNote uint32
|
|
MIDIPitchFraction uint32
|
|
SMPTEFormat uint32
|
|
SMPTEOffset uint32
|
|
NumSampleLoops uint32
|
|
Loops []*SampleLoop
|
|
}
|
|
|
|
type SampleLoop struct {
|
|
CuePointID [4]byte
|
|
Type uint32
|
|
Start uint32
|
|
End uint32
|
|
Fraction uint32
|
|
PlayCount uint32
|
|
}
|