Versions in this module Expand all Collapse all v0 v0.3.3 May 15, 2017 Changes in this version + const FormatFloat64BE + const FormatFloat64LE + const FormatFloatBE + const FormatFloatLE + const FormatS16BE + const FormatS16LE + const FormatS24BE + const FormatS24LE + const FormatS32BE + const FormatS32LE + const FormatS8 + const FormatU16BE + const FormatU16LE + const FormatU24BE + const FormatU24LE + const FormatU32BE + const FormatU32LE + const FormatU8 + var ErrOverrun = errors.New("overrun") + var ErrSize = errors.New("Slice element size does not correspond to the device sample size") + var ErrUnderrun = errors.New("underrun") + type BufferParams struct + BufferFrames int + PeriodFrames int + Periods int + type CaptureDevice struct + func NewCaptureDevice(deviceName string, channels int, format Format, rate int, ...) (c *CaptureDevice, err error) + func (c *CaptureDevice) Read(buffer interface{}) (samples int, err error) + func (d *CaptureDevice) Close() + func (d *CaptureDevice) GetMasterVolume() (int, error) + func (d *CaptureDevice) SetMasterVolume(volume int) error + type Format C.snd_pcm_format_t + type PlaybackDevice struct + func NewPlaybackDevice(deviceName string, channels int, format Format, rate int, ...) (p *PlaybackDevice, err error) + func (d *PlaybackDevice) Close() + func (d *PlaybackDevice) GetMasterVolume() (int, error) + func (d *PlaybackDevice) SetMasterVolume(volume int) error + func (p *PlaybackDevice) Drop() error + func (p *PlaybackDevice) Write(buffer interface{}) (samples int, err error)