IsSoundReady has been renamed
This commit is contained in:
parent
f3553fea29
commit
3282ea28f2
2 changed files with 8 additions and 8 deletions
|
@ -209,10 +209,10 @@ func LoadSoundAlias(source Sound) Sound {
|
|||
return v
|
||||
}
|
||||
|
||||
// IsSoundReady - Checks if a sound is ready
|
||||
func IsSoundReady(sound Sound) bool {
|
||||
// IsSoundValid - Checks if a sound is valid (data loaded and buffers initialized)
|
||||
func IsSoundValid(sound Sound) bool {
|
||||
csound := sound.cptr()
|
||||
ret := C.IsSoundReady(*csound)
|
||||
ret := C.IsSoundValid(*csound)
|
||||
v := bool(ret)
|
||||
return v
|
||||
}
|
||||
|
|
|
@ -475,7 +475,7 @@ var isWaveValid func(wave uintptr) bool
|
|||
var loadSound func(sound uintptr, fileName string)
|
||||
var loadSoundFromWave func(sound uintptr, wave uintptr)
|
||||
var loadSoundAlias func(sound uintptr, source uintptr)
|
||||
var isSoundReady func(sound uintptr) bool
|
||||
var isSoundValid func(sound uintptr) bool
|
||||
var updateSound func(sound uintptr, data []byte, sampleCount int32)
|
||||
var unloadWave func(wave uintptr)
|
||||
var unloadSound func(sound uintptr)
|
||||
|
@ -991,7 +991,7 @@ func init() {
|
|||
purego.RegisterLibFunc(&loadSound, raylibDll, "LoadSound")
|
||||
purego.RegisterLibFunc(&loadSoundFromWave, raylibDll, "LoadSoundFromWave")
|
||||
purego.RegisterLibFunc(&loadSoundAlias, raylibDll, "LoadSoundAlias")
|
||||
purego.RegisterLibFunc(&isSoundReady, raylibDll, "IsSoundReady")
|
||||
purego.RegisterLibFunc(&isSoundValid, raylibDll, "IsSoundValid")
|
||||
purego.RegisterLibFunc(&updateSound, raylibDll, "UpdateSound")
|
||||
purego.RegisterLibFunc(&unloadWave, raylibDll, "UnloadWave")
|
||||
purego.RegisterLibFunc(&unloadSound, raylibDll, "UnloadSound")
|
||||
|
@ -3624,9 +3624,9 @@ func LoadSoundAlias(source Sound) Sound {
|
|||
return sound
|
||||
}
|
||||
|
||||
// IsSoundReady - Checks if a sound is ready
|
||||
func IsSoundReady(sound Sound) bool {
|
||||
return isSoundReady(uintptr(unsafe.Pointer(&sound)))
|
||||
// IsSoundValid - Checks if a sound is valid (data loaded and buffers initialized)
|
||||
func IsSoundValid(sound Sound) bool {
|
||||
return isSoundValid(uintptr(unsafe.Pointer(&sound)))
|
||||
}
|
||||
|
||||
// UpdateSound - Update sound buffer with new data
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue