Exemplo n.º 1
0
func (s *Stream) Stop() error {
	err := C.Pa_StopStream(s.paStream)
	if err != C.paNoError {
		return newError(err)
	}
	return nil
}
Exemplo n.º 2
0
// Stop terminates audio processing. It waits until all pending
// audio buffers have been played before it returns.
func (s *Stream) Stop() error {
	return newError(C.Pa_StopStream(s.paStream))
}
Exemplo n.º 3
0
func (strm *Stream) Close() {
	C.Pa_StopStream(strm.cee)
	C.Pa_CloseStream(strm.cee)
	strm.cee = nil // we really don't want a wild pointer around
}
Exemplo n.º 4
0
// StopStream function as declared in portaudio/portaudio.h:943
func StopStream(stream *Stream) Error {
	cstream, _ := (unsafe.Pointer)(unsafe.Pointer(stream)), cgoAllocsUnknown
	__ret := C.Pa_StopStream(cstream)
	__v := (Error)(__ret)
	return __v
}