示例#1
0
func (t *Sound) Destroy() {
	C.Mix_FreeChunk(t.chunk)
	t.chunk = nil
}
示例#2
0
// Frees the loaded sound file.
func (c *Chunk) Free() { C.Mix_FreeChunk(c.cchunk) }
示例#3
0
func (chunk *Chunk) Free() {
	_chunk := (*C.Mix_Chunk)(unsafe.Pointer(chunk))
	C.Mix_FreeChunk(_chunk)
}
示例#4
0
文件: mixer.go 项目: beoran/fungo
// Free an audio chunk previously loaded
func FreeSound(wave * C.Mix_Chunk) {
  C.Mix_FreeChunk(wave)
}