mirror of
https://github.com/make-42/hayai.git
synced 2025-01-18 18:47:10 +01:00
.. | ||
internal/mux | ||
.gitignore | ||
AUTHORS | ||
context.go | ||
driver_android.go | ||
driver_darwin.go | ||
driver_ios.go | ||
driver_ios.m | ||
driver_js.go | ||
driver_linux.go | ||
driver_macos.go | ||
driver_macos.m | ||
driver_openal.go | ||
driver_windows.go | ||
dummy.go | ||
go2cpp_js.go | ||
LICENSE | ||
pipe_gopherjs.go | ||
pipe_notgopherjs.go | ||
player.go | ||
README.md | ||
slice_js.go | ||
winmm_windows.go |
Oto (音)
A low-level library to play sound. This package offers io.WriteCloser
to play PCM sound.
Platforms
- Windows
- macOS
- Linux
- FreeBSD
- OpenBSD
- Android
- iOS
- Web browsers (GopherJS and WebAssembly)
Prerequisite
macOS
Oto requies AudioToolbox.framework
, but this is automatically linked.
iOS
Oto requies these frameworks:
AVFoundation.framework
AudioToolbox.framework
Add them to "Linked Frameworks and Libraries" on your Xcode project.
Linux
libasound2-dev is required. On Ubuntu or Debian, run this command:
apt install libasound2-dev
In most cases this command must be run by root user or through sudo
command.
Crosscompiling
To crosscompile, make sure the libraries for the target architecture are installed, and set CGO_ENABLED=1
as Go disables Cgo on crosscompiles by default
FreeBSD
OpenAL is required. Install openal-soft:
pkg install openal-soft
OpenBSD
OpenAL is required. Install openal:
pkg_add -r openal