Esempio n. 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
}
Esempio n. 2
0
func SetMusicCMD(command string) bool {
	_command := C.CString(command)
	defer C.free(unsafe.Pointer(_command))
	return int(C.Mix_SetMusicCMD(_command)) == 0
}
Esempio n. 3
0
func SetMusicCMD(command string) bool {
	_command := (C.CString)(command)
	return int(C.Mix_SetMusicCMD(_command)) == 0
}
Esempio n. 4
0
// 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))
}