IsWaveReady has been renamed
This commit is contained in:
parent
b09e22b6ad
commit
f3553fea29
2 changed files with 8 additions and 8 deletions
|
@ -176,10 +176,10 @@ func LoadWaveFromMemory(fileType string, fileData []byte, dataSize int32) Wave {
|
||||||
return v
|
return v
|
||||||
}
|
}
|
||||||
|
|
||||||
// IsWaveReady - Checks if wave data is ready
|
// IsWaveValid - Checks if wave data is valid (data loaded and parameters)
|
||||||
func IsWaveReady(wave Wave) bool {
|
func IsWaveValid(wave Wave) bool {
|
||||||
cwave := wave.cptr()
|
cwave := wave.cptr()
|
||||||
ret := C.IsWaveReady(*cwave)
|
ret := C.IsWaveValid(*cwave)
|
||||||
v := bool(ret)
|
v := bool(ret)
|
||||||
return v
|
return v
|
||||||
}
|
}
|
||||||
|
|
|
@ -471,7 +471,7 @@ var setMasterVolume func(volume float32)
|
||||||
var getMasterVolume func() float32
|
var getMasterVolume func() float32
|
||||||
var loadWave func(wave uintptr, fileName string)
|
var loadWave func(wave uintptr, fileName string)
|
||||||
var loadWaveFromMemory func(wave uintptr, fileType string, fileData []byte, dataSize int32)
|
var loadWaveFromMemory func(wave uintptr, fileType string, fileData []byte, dataSize int32)
|
||||||
var isWaveReady func(wave uintptr) bool
|
var isWaveValid func(wave uintptr) bool
|
||||||
var loadSound func(sound uintptr, fileName string)
|
var loadSound func(sound uintptr, fileName string)
|
||||||
var loadSoundFromWave func(sound uintptr, wave uintptr)
|
var loadSoundFromWave func(sound uintptr, wave uintptr)
|
||||||
var loadSoundAlias func(sound uintptr, source uintptr)
|
var loadSoundAlias func(sound uintptr, source uintptr)
|
||||||
|
@ -987,7 +987,7 @@ func init() {
|
||||||
purego.RegisterLibFunc(&getMasterVolume, raylibDll, "GetMasterVolume")
|
purego.RegisterLibFunc(&getMasterVolume, raylibDll, "GetMasterVolume")
|
||||||
purego.RegisterLibFunc(&loadWave, raylibDll, "LoadWave")
|
purego.RegisterLibFunc(&loadWave, raylibDll, "LoadWave")
|
||||||
purego.RegisterLibFunc(&loadWaveFromMemory, raylibDll, "LoadWaveFromMemory")
|
purego.RegisterLibFunc(&loadWaveFromMemory, raylibDll, "LoadWaveFromMemory")
|
||||||
purego.RegisterLibFunc(&isWaveReady, raylibDll, "IsWaveReady")
|
purego.RegisterLibFunc(&isWaveValid, raylibDll, "IsWaveValid")
|
||||||
purego.RegisterLibFunc(&loadSound, raylibDll, "LoadSound")
|
purego.RegisterLibFunc(&loadSound, raylibDll, "LoadSound")
|
||||||
purego.RegisterLibFunc(&loadSoundFromWave, raylibDll, "LoadSoundFromWave")
|
purego.RegisterLibFunc(&loadSoundFromWave, raylibDll, "LoadSoundFromWave")
|
||||||
purego.RegisterLibFunc(&loadSoundAlias, raylibDll, "LoadSoundAlias")
|
purego.RegisterLibFunc(&loadSoundAlias, raylibDll, "LoadSoundAlias")
|
||||||
|
@ -3598,9 +3598,9 @@ func LoadWaveFromMemory(fileType string, fileData []byte, dataSize int32) Wave {
|
||||||
return wave
|
return wave
|
||||||
}
|
}
|
||||||
|
|
||||||
// IsWaveReady - Checks if wave data is ready
|
// IsWaveValid - Checks if wave data is valid (data loaded and parameters)
|
||||||
func IsWaveReady(wave Wave) bool {
|
func IsWaveValid(wave Wave) bool {
|
||||||
return isWaveReady(uintptr(unsafe.Pointer(&wave)))
|
return isWaveValid(uintptr(unsafe.Pointer(&wave)))
|
||||||
}
|
}
|
||||||
|
|
||||||
// LoadSound - Load sound from file
|
// LoadSound - Load sound from file
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue