Update C sources, add new functions
This commit is contained in:
parent
adf3401c3c
commit
48689803b8
28 changed files with 2681 additions and 1918 deletions
|
@ -107,6 +107,14 @@ func UnloadSound(sound Sound) {
|
|||
C.UnloadSound(*csound)
|
||||
}
|
||||
|
||||
// ExportWave - Export wave data to file
|
||||
func ExportWave(wave Wave, fileName string) {
|
||||
cwave := wave.cptr()
|
||||
cfileName := C.CString(fileName)
|
||||
defer C.free(unsafe.Pointer(cfileName))
|
||||
C.ExportWave(*cwave, cfileName)
|
||||
}
|
||||
|
||||
// PlaySound - Play a sound
|
||||
func PlaySound(sound Sound) {
|
||||
csound := sound.cptr()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue