// Unpause PCM. func (handle *Handle) Unpause() error { err := C.snd_pcm_pause(handle.cHandle, 0) if err != 0 { return errors.New(fmt.Sprintf("Unpause failed. %s", strError(err))) } return nil }
// Pause PCM. func (handle *Handle) Pause() os.Error { err := C.snd_pcm_pause(handle.cHandle, 1) if err != 0 { return os.NewError(fmt.Sprintf("Pause failed. %s", strError(err))) } return nil }
// Pause PCM. func (handle *Handle) Pause() error { var pause int if handle.Paused() { pause = 0 } else { pause = 1 } err := C.snd_pcm_pause(handle.cHandle, C.int(pause)) if err != 0 { return fmt.Errorf("Pause failed. %s", strError(err)) } return nil }