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
+20
View File
@@ -0,0 +1,20 @@
package audio
// L8 is a raw, linear 8-bit sound snippet.
type L8 struct {
SampleRate float32
Samples []byte
}
// Empty returns true if there are no samples to play.
func (sound L8) Empty() bool {
return len(sound.Samples) == 0
}
// Duration returns the length of the sound in seconds.
func (sound L8) Duration() float32 {
if sound.SampleRate <= 0 {
return 0.0
}
return float32(len(sound.Samples)) / sound.SampleRate
}