Adding modding folder with a hacked build.

This commit is contained in:
ml
2026-09-26 08:53:08 +02:00
parent cdb960dc71
commit c91080aba7
755 changed files with 50424 additions and 0 deletions
@@ -0,0 +1,33 @@
package wav
import (
"encoding/binary"
)
type waveFormatType uint16
const (
waveFormatTypePcm = 1
)
type waveFormat struct {
FormatType waveFormatType
Channels uint16
SamplesPerSec uint32
AvgBytesPerSec uint32
BlockAlign uint16
}
type waveFormatExtension struct {
BitsPerSample uint16
ExtensionSize uint16
}
type formatHeader struct {
base waveFormat
extension waveFormatExtension
}
func (header formatHeader) size() uint32 {
return uint32(binary.Size(&header.base) + binary.Size(&header.extension))
}