MCPcopy
hub / github.com/EngoEngine/engo / init

Function init

common/audio_filetype.go:118–122  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

116}
117
118func init() {
119 engo.Files.Register(".wav", &audioLoader{audios: make(map[string]*Player)})
120 engo.Files.Register(".mp3", &audioLoader{audios: make(map[string]*Player)})
121 engo.Files.Register(".ogg", &audioLoader{audios: make(map[string]*Player)})
122}
123
124// getExt returns the extension of the file(including extensions with `.` in them) from the given url.
125func getExt(path string) string {

Callers

nothing calls this directly

Calls 1

RegisterMethod · 0.45

Tested by

no test coverage detected