Versions in this module Expand all Collapse all v0 v0.0.1 Nov 23, 2019 Changes in this version + func SetPulseBufferSize(d time.Duration) error + type Batch struct + Data []int16 + Err error + type Params struct + Channels int + DeviceOrFile string + FrameLength time.Duration + Rate int + type PulsePlayer struct + func NewPulsePlayer(params Params) (*PulsePlayer, error) + func (p *PulsePlayer) Batches() chan<- []int16 + func (p *PulsePlayer) Errors() <-chan error + func (p *PulsePlayer) Stop() + func (p *PulsePlayer) Stopped() <-chan struct{} + type PulseRecorder struct + func NewPulseRecorder(params Params) (*PulseRecorder, error) + func (p *PulseRecorder) Batches() <-chan Batch + func (p *PulseRecorder) Stop() + type Reader interface + Batches func() <-chan Batch + Stop func() + func NewReader(params Params) (Reader, error) + type WavReader struct + func NewWavReader(params Params) (*WavReader, error) + func (w *WavReader) Batches() <-chan Batch + func (w *WavReader) Stop()