1
0
Fork 0
tetris-go/engine/audio/library.go

16 lines
289 B
Go

package audio
import rl "github.com/gen2brain/raylib-go/raylib"
// Library is a map of SoundID's and sound data.
type Library []rl.Sound
func (l Library) Unload() {
for _, stream := range l {
rl.UnloadSound(stream)
}
}
func (l Library) Get(id SoundID) *rl.Sound {
return &l[id]
}