hayai/vendor/github.com/hajimehoshi/oto
2024-12-21 17:26:50 +01:00
..
internal/mux add vendor 2024-12-21 17:26:50 +01:00
.gitignore add vendor 2024-12-21 17:26:50 +01:00
AUTHORS add vendor 2024-12-21 17:26:50 +01:00
context.go add vendor 2024-12-21 17:26:50 +01:00
driver_android.go add vendor 2024-12-21 17:26:50 +01:00
driver_darwin.go add vendor 2024-12-21 17:26:50 +01:00
driver_ios.go add vendor 2024-12-21 17:26:50 +01:00
driver_ios.m add vendor 2024-12-21 17:26:50 +01:00
driver_js.go add vendor 2024-12-21 17:26:50 +01:00
driver_linux.go add vendor 2024-12-21 17:26:50 +01:00
driver_macos.go add vendor 2024-12-21 17:26:50 +01:00
driver_macos.m add vendor 2024-12-21 17:26:50 +01:00
driver_openal.go add vendor 2024-12-21 17:26:50 +01:00
driver_windows.go add vendor 2024-12-21 17:26:50 +01:00
dummy.go add vendor 2024-12-21 17:26:50 +01:00
go2cpp_js.go add vendor 2024-12-21 17:26:50 +01:00
LICENSE add vendor 2024-12-21 17:26:50 +01:00
pipe_gopherjs.go add vendor 2024-12-21 17:26:50 +01:00
pipe_notgopherjs.go add vendor 2024-12-21 17:26:50 +01:00
player.go add vendor 2024-12-21 17:26:50 +01:00
README.md add vendor 2024-12-21 17:26:50 +01:00
slice_js.go add vendor 2024-12-21 17:26:50 +01:00
winmm_windows.go add vendor 2024-12-21 17:26:50 +01:00

Oto (音)

GoDoc

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