audio

command
v0.0.0-...-8b1022e Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 17, 2016 License: Apache-2.0, BSD-3-Clause Imports: 16 Imported by: 0

Documentation

Overview

An app that makes a sound as the gopher hits the walls of the screen.

Note: This demo is an early preview of Go 1.5. In order to build this program as an Android APK using the gomobile tool.

See http://godoc.org/golang.org/x/mobile/cmd/gomobile to install gomobile.

Get the audio example and use gomobile to build or install it on your device.

$ go get -d golang.org/x/mobile/example/audio
$ gomobile build golang.org/x/mobile/example/audio # will build an APK

# plug your Android device to your computer or start an Android emulator.
# if you have adb installed on your machine, use gomobile install to
# build and deploy the APK to an Android target.
$ gomobile install golang.org/x/mobile/example/audio

Additionally, you can run the sample on your desktop environment by using the go tool.

$ go install golang.org/x/mobile/example/audio && audio

On Linux, you need to install OpenAL developer library by running the command below.

$ apt-get install libopenal-dev

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL