Example #1
0
// FreeWAV (https://wiki.libsdl.org/SDL_FreeWAV)
func FreeWAV(audioBuf *uint8) {
	_audioBuf := (*C.Uint8)(unsafe.Pointer(audioBuf))
	C.SDL_FreeWAV(_audioBuf)
}
Example #2
0
// FreeWAV (https://wiki.libsdl.org/SDL_FreeWAV)
func FreeWAV(audioBuf []uint8) {
	sliceHeader := (*reflect.SliceHeader)(unsafe.Pointer(&audioBuf))
	_audioBuf := (*C.Uint8)(unsafe.Pointer(sliceHeader.Data))
	C.SDL_FreeWAV(_audioBuf)
}
Example #3
0
func FreeWAV(buf []byte) {
	C.SDL_FreeWAV((*C.Uint8)(unsafe.Pointer(&buf[0])))
}
Example #4
0
func (w *WAVData) Free() {
	C.SDL_FreeWAV((*C.Uint8)(unsafe.Pointer(w.AudioBuf)))
}
Example #5
0
//
// This function frees data previously allocated with SDL_LoadWAV_RW()
func FreeWav(audio_buf *C.Uint8) {
	C.SDL_FreeWAV(audio_buf)
}