Exemple #1
0
func QuickLoad_WAV(mem unsafe.Pointer) (chunk *Chunk, err error) {
	_mem := (*C.Uint8)(mem)
	chunk = (*Chunk)(unsafe.Pointer(C.Mix_QuickLoad_WAV(_mem)))
	if chunk == nil {
		err = sdl.GetError()
	}
	return
}
Exemple #2
0
func QuickLoad_WAV(mem *uint8) *Chunk {
	_mem := (*C.Uint8)(mem)
	return (*Chunk)(unsafe.Pointer(C.Mix_QuickLoad_WAV(_mem)))
}