Skip to content

Commit

Permalink
mobile/example/audio: fix the broken Android build
Browse files Browse the repository at this point in the history
Fixes golang/go#10758

Change-Id: I6e2084a817789fcadbe61e257446ed5a17b77a1d
Reviewed-on: https://go-review.googlesource.com/9878
Reviewed-by: David Crawshaw <crawshaw@golang.org>
  • Loading branch information
rakyll committed May 8, 2015
1 parent e33b2ce commit f3d33d5
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions audio/al/al_android.go
Expand Up @@ -243,12 +243,8 @@ var (
)

func initAL() {
state := app.GetConfig().(interface {
JavaVM() unsafe.Pointer
AndroidContext() unsafe.Pointer
})

alHandle = C.al_init(state.JavaVM(), state.AndroidContext())
cfg := app.GetConfig()
alHandle = C.al_init(cfg.JavaVM(), cfg.AndroidContext())
alEnableFunc = C.LPALENABLE(fn("alEnable"))
alDisableFunc = C.LPALDISABLE(fn("alDisable"))
alIsEnabledFunc = C.LPALISENABLED(fn("alIsEnabled"))
Expand Down

0 comments on commit f3d33d5

Please sign in to comment.