WaveCrop parameters renamed
This commit is contained in:
parent
3282ea28f2
commit
0c2506a3cd
2 changed files with 9 additions and 9 deletions
|
@ -315,12 +315,12 @@ func WaveCopy(wave Wave) Wave {
|
||||||
return v
|
return v
|
||||||
}
|
}
|
||||||
|
|
||||||
// WaveCrop - Crop a wave to defined samples range
|
// WaveCrop - Crop a wave to defined frames range
|
||||||
func WaveCrop(wave Wave, initSample int32, finalSample int32) {
|
func WaveCrop(wave Wave, initFrame int32, finalFrame int32) {
|
||||||
cwave := wave.cptr()
|
cwave := wave.cptr()
|
||||||
cinitSample := (C.int)(initSample)
|
cinitFrame := (C.int)(initFrame)
|
||||||
cfinalSample := (C.int)(finalSample)
|
cfinalFrame := (C.int)(finalFrame)
|
||||||
C.WaveCrop(cwave, cinitSample, cfinalSample)
|
C.WaveCrop(cwave, cinitFrame, cfinalFrame)
|
||||||
}
|
}
|
||||||
|
|
||||||
// LoadWaveSamples - Get samples data from wave as a floats array
|
// LoadWaveSamples - Get samples data from wave as a floats array
|
||||||
|
|
|
@ -490,7 +490,7 @@ var setSoundVolume func(sound uintptr, volume float32)
|
||||||
var setSoundPitch func(sound uintptr, pitch float32)
|
var setSoundPitch func(sound uintptr, pitch float32)
|
||||||
var setSoundPan func(sound uintptr, pan float32)
|
var setSoundPan func(sound uintptr, pan float32)
|
||||||
var waveCopy func(copy uintptr, wave uintptr)
|
var waveCopy func(copy uintptr, wave uintptr)
|
||||||
var waveCrop func(wave *Wave, initSample int32, finalSample int32)
|
var waveCrop func(wave *Wave, initFrame int32, finalFrame int32)
|
||||||
var waveFormat func(wave *Wave, sampleRate int32, sampleSize int32, channels int32)
|
var waveFormat func(wave *Wave, sampleRate int32, sampleSize int32, channels int32)
|
||||||
var loadWaveSamples func(wave uintptr) *float32
|
var loadWaveSamples func(wave uintptr) *float32
|
||||||
var unloadWaveSamples func(samples []float32)
|
var unloadWaveSamples func(samples []float32)
|
||||||
|
@ -3701,9 +3701,9 @@ func WaveCopy(wave Wave) Wave {
|
||||||
return copy
|
return copy
|
||||||
}
|
}
|
||||||
|
|
||||||
// WaveCrop - Crop a wave to defined samples range
|
// WaveCrop - Crop a wave to defined frames range
|
||||||
func WaveCrop(wave *Wave, initSample int32, finalSample int32) {
|
func WaveCrop(wave *Wave, initFrame int32, finalFrame int32) {
|
||||||
waveCrop(wave, initSample, finalSample)
|
waveCrop(wave, initFrame, finalFrame)
|
||||||
}
|
}
|
||||||
|
|
||||||
// WaveFormat - Convert wave data to desired format
|
// WaveFormat - Convert wave data to desired format
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue