示例#1
0
// SetMusicCMD
// (https://www.libsdl.org/projects/SDL_mixer/docs/SDL_mixer_66.html)
func SetMusicCMD(command string) error {
	_command := C.CString(command)
	defer C.free(unsafe.Pointer(_command))
	if C.Mix_SetMusicCMD(_command) == -1 {
		return sdl.GetError()
	}
	return nil
}
示例#2
0
func SetMusicCMD(command string) bool {
	_command := C.CString(command)
	defer C.free(unsafe.Pointer(_command))
	return int(C.Mix_SetMusicCMD(_command)) == 0
}
示例#3
0
func SetMusicCMD(command string) bool {
	_command := (C.CString)(command)
	return int(C.Mix_SetMusicCMD(_command)) == 0
}
示例#4
0
文件: mixer.go 项目: beoran/fungo
// Stop music and set external music playback command
func SetMusicCommand(command string) (int) { 
  ccommand := cstr(command) ; defer ccommand.free()
  return int(C.Mix_SetMusicCMD(ccommand))
}