()
| 116 | } |
| 117 | |
| 118 | func 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. |
| 125 | func getExt(path string) string { |