Exemple #1
0
func (playback *PlayInstance) StopPlayback() {
	if playback.src != nil &&
		playback.id == playback.src.requestId &&
		playback.src.isPlaying {

		C.alSourceStop(playback.src.id)
		playback.src.occupied = false
		playback.src.isPlaying = false
	}
}
Exemple #2
0
func (self *Source) Stop() {
	C.alSourceStop(self.handle)
}
Exemple #3
0
// Renamed, was SourceStop.
func (self Source) Stop() {
	C.alSourceStop(C.ALuint(self))
}
Exemple #4
0
func (source Source) Stop() {
	C.alSourceStop(C.ALuint(source))
}
Exemple #5
0
func (source Source) Stop() error {
	C.alSourceStop(source.source)
	return GetError()
}