You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
cointop/vendor/github.com/hajimehoshi/oto/README.md

36 lines
671 B
Markdown

# Oto (音)
[![GoDoc](https://godoc.org/github.com/hajimehoshi/oto?status.svg)](http://godoc.org/github.com/hajimehoshi/oto)
A low-level library to play sound. This package offers `io.WriteCloser` to play PCM sound.
## Platforms
* Windows
* macOS
* Linux
* FreeBSD
* Android
* iOS
* Web browsers ([GopherJS](https://github.com/gopherjs/gopherjs) and WebAssembly)
## Prerequisite
### Linux
libasound2-dev is required. On Ubuntu or Debian, run this command:
```sh
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:
```sh
pkg install openal-soft
```