[mirror] Go on Mobile https://golang.org/x/mobile
Go to file
Burcu Dogan a8aa7bbd72 audio: have a global audio device and context
On mobile devices, there is typically only a single audio device. We may
open it once and reuse it to stream audio buffers from multiple sources.
This assumption also applies to the context since OpenAL contextes are
process-wide. A shared global pointer is reusable across multiple
OpenAL sources.

This CL also removes the Device and Context types and the unexpected
garbage collection issue introduced by Context's finalizer.

Fixes golang/go#10636

Change-Id: I82e6e6e6a1500ba91d66a7848cf37d1a5e01af9b
Reviewed-on: https://go-review.googlesource.com/9782
Reviewed-by: Hyang-Ah Hana Kim <hyangah@gmail.com>
2015-05-06 19:07:41 +00:00
app app: introduce Config and start registration 2015-05-06 17:32:53 +00:00
audio audio: have a global audio device and context 2015-05-06 19:07:41 +00:00
bind app: introduce Config and start registration 2015-05-06 17:32:53 +00:00
build build/androidtest.bash: script to run all tests in a repository on an 2014-12-18 00:48:16 +00:00
cmd cmd/gomobile: print error messages from javac 2015-05-04 12:06:30 +00:00
event mobile/app: identify touches by ID to enable multitouch 2015-04-29 16:53:16 +00:00
example example/basic,example/sprite: give a reference to gomobile installation 2015-05-01 20:58:37 +00:00
f32 mobile: add import comments. 2014-12-10 01:59:04 +00:00
font mobile: add missing canonical import paths 2015-05-05 03:13:45 +00:00
geom app: introduce Config and start registration 2015-05-06 17:32:53 +00:00
gl gl: Improve API signatures to match spec, improve docs. 2015-03-30 19:58:17 +00:00
sensor mobile: add missing canonical import paths 2015-05-05 03:13:45 +00:00
sprite sprite/glsprite: add very basic package docs 2014-12-12 14:44:04 +00:00
testdata example/sprite: make example lives 2014-12-22 13:10:48 +00:00
.gitattributes mobile: copying .gitattributes to all subrepositories 2014-12-23 23:23:25 +00:00
.gitignore convert .hgignore to .gitignore. 2014-12-08 10:43:03 +11:00
AUTHORS go.empty: prototype for new subrepository 2012-01-25 14:45:13 -05:00
CONTRIBUTING.md doc: add CONTRIBUTING.md 2015-02-18 23:42:31 +00:00
CONTRIBUTORS go.empty: prototype for new subrepository 2012-01-25 14:45:13 -05:00
Dockerfile Dockerfile: update go version to 3f4de49. 2015-04-20 17:34:49 +00:00
LICENSE LICENSE: add 2012-03-17 15:20:58 +11:00
PATENTS go.empty: add PATENTS file to the subrepo. 2012-04-16 11:24:04 +10:00
README.md mobile: add gomobile to README 2015-05-05 17:44:58 +00:00
codereview.cfg mobile: add codereview.cfg 2015-03-18 17:03:44 +00:00

README.md

Go support for Mobile devices

The Go mobile repository holds packages and build tools for using Go on Android.

This is early work and installing the build system requires Go 1.5. Follow the build instructions on godoc.org/golang.org/x/mobile/cmd/gomobile to install the gomobile command and build the basic example.

--

APIs are currently very limited, but under active development. Package documentation serves as a starting point:

Contributions to Go are appreciated. See https://golang.org/doc/contribute.html.