Adding multichannel audio functions
This commit is contained in:
parent
f2de21371c
commit
01e81219da
4 changed files with 84 additions and 0 deletions
|
@ -334,3 +334,21 @@ func StopAudioStream(stream AudioStream) {
|
|||
cstream := stream.cptr()
|
||||
C.StopAudioStream(*cstream)
|
||||
}
|
||||
|
||||
// PlaySoundMulti - Play a sound (using multichannel buffer pool)
|
||||
func PlaySoundMulti(sound Sound) {
|
||||
csound := sound.cptr()
|
||||
C.PlaySoundMulti(*csound)
|
||||
}
|
||||
|
||||
// GetSoundsPlaying - Get number of sounds playing in the multichannel
|
||||
func GetSoundsPlaying() int {
|
||||
ret := C.GetSoundsPlaying()
|
||||
v := int(ret)
|
||||
return v
|
||||
}
|
||||
|
||||
// StopSoundMulti - Stop any sound playing (using multichannel buffer pool)
|
||||
func StopSoundMulti() {
|
||||
C.StopSoundMulti()
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue