Skip to content
♪ A low-level library to play sound on multiple platforms ♪
Branch: master
Clone or download
Latest commit ecffe8f Mar 18, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
example gofmt -s -w Feb 16, 2019
internal/mux Bug fix: CPU busy when there is no Player object Feb 16, 2019
.gitignore
AUTHORS
LICENSE First commit May 4, 2017
README.md Add OpenBSD support (#69) Mar 18, 2019
context.go Allow context reuse after close (#62) Feb 16, 2019
driver_android.go
driver_js.go
driver_linux.go
driver_openal.go freebsd: Use pkg-config Mar 18, 2019
driver_windows.go
go.mod
go.sum
player.go Implement Context/Player for multiple playback sources (#57) Jan 23, 2019
winmm_windows.go windows: Add winmmError struct Jan 5, 2019

README.md

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

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.

FreeBSD

OpenAL is required. Install openal-soft:

pkg install openal-soft

OpenBSD

OpenAL is required. Install openal:

pkg_add -r openal
You can’t perform that action at this time.