feat(audio): 音频管理器——3D 衰减、声源池淘汰、分类音量、程序化合成音(beep+oto 纯 Go)

This commit is contained in:
NianGao Dev
2026-08-15 23:09:13 +08:00
parent 00397e7b13
commit 4eaab7f3f9
6 changed files with 331 additions and 10 deletions

26
go.mod
View File

@@ -2,14 +2,24 @@ module mc
go 1.26.4
require gopkg.in/yaml.v3 v3.0.1
require (
github.com/ebitengine/oto/v3 v3.4.0
github.com/faiface/beep v1.1.0
github.com/fsnotify/fsnotify v1.10.1
github.com/go-gl/gl v0.0.0-20260331235117-4566fea9a276
github.com/go-gl/glfw/v3.3/glfw v0.0.0-20260802143932-8fa725040a18
github.com/klauspost/compress v1.19.2
github.com/ojrac/opensimplex-go v1.0.2
github.com/yuin/gopher-lua v1.1.2
gopkg.in/yaml.v3 v3.0.1
)
require (
github.com/fsnotify/fsnotify v1.10.1 // indirect
github.com/go-gl/gl v0.0.0-20260331235117-4566fea9a276 // indirect
github.com/go-gl/glfw/v3.3/glfw v0.0.0-20260802143932-8fa725040a18 // indirect
github.com/klauspost/compress v1.19.2 // indirect
github.com/ojrac/opensimplex-go v1.0.2 // indirect
github.com/yuin/gopher-lua v1.1.2 // indirect
golang.org/x/sys v0.13.0 // indirect
github.com/ebitengine/purego v0.9.0 // indirect
github.com/hajimehoshi/oto v0.7.1 // indirect
github.com/pkg/errors v0.9.1 // indirect
golang.org/x/exp v0.0.0-20190306152737-a1d7652674e8 // indirect
golang.org/x/image v0.0.0-20190227222117-0694c2d4d067 // indirect
golang.org/x/mobile v0.0.0-20190415191353-3e0bab5405d6 // indirect
golang.org/x/sys v0.36.0 // indirect
)