Example #1
0
func (s *Sample) Save(filename string) bool {
	f := C.CString(filename)
	defer C.free(unsafe.Pointer(f))
	return bool(C.al_save_sample(f, (*C.ALLEGRO_SAMPLE)(unsafe.Pointer(s))))
}
Example #2
0
File: audio.go Project: beoran/algo
// Saves a sample to a given filename
func (self *Sample) Save(filename string) bool {
	cstr := cstr(filename)
	defer cstrFree(cstr)
	return cb2b(C.al_save_sample(cstr, self.handle))
}