示例#1
0
func (s *Stream) Stop() error {
	err := C.Pa_StopStream(s.paStream)
	if err != C.paNoError {
		return newError(err)
	}
	return nil
}
示例#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))
}
示例#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
}
示例#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
}