exp/audio/al: cleanup unnecessary casts

As a follow-up to CL/19472, I am removing the unnecessary casts. It
turned out that the only call sites that will benefit from this change
are the ones added in CL/19472. Sorry for the additional CL.

Change-Id: Ib6bdffefad5b84beb57108a74ebcedc25b7ef7b3
Reviewed-on: https://go-review.googlesource.com/19653
Reviewed-by: Hyang-Ah Hana Kim <hyangah@gmail.com>
This commit is contained in:
Burcu Dogan
2016-02-18 13:01:31 -08:00
parent 52e0785361
commit ed70d674be
2 changed files with 2 additions and 2 deletions

View File

@ -350,7 +350,7 @@ func alGetBooleanv(k int, v []bool) {
val[i] = C.AL_FALSE
}
}
C.call_alGetBooleanv(alGetBooleanvFunc, C.ALenum(k), (*C.ALboolean)(unsafe.Pointer(&val[0])))
C.call_alGetBooleanv(alGetBooleanvFunc, C.ALenum(k), &val[0])
}
func alGetString(v int) string {

View File

@ -66,7 +66,7 @@ func alGetBooleanv(k int, v []bool) {
val[i] = C.AL_FALSE
}
}
C.alGetBooleanv(C.ALenum(k), (*C.ALboolean)(unsafe.Pointer(&val[0])))
C.alGetBooleanv(C.ALenum(k), &val[0])
}
func alGetString(v int) string {