Documentation ¶ Rendered for linux/amd64 windows/amd64 darwin/amd64 js/wasm Index ¶ Constants type Capture func StartCapture(ctx context.Context) (*Capture, <-chan []int16, error) func (c *Capture) Close() error type Playback func StartPlayback(ctx context.Context) (*Playback, error) func (p *Playback) Close() error func (p *Playback) Write(samples []int16) Constants ¶ View Source const ( SampleRate = 48000 Channels = 1 ) Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type Capture ¶ type Capture struct { // contains filtered or unexported fields } func StartCapture ¶ func StartCapture(ctx context.Context) (*Capture, <-chan []int16, error) func (*Capture) Close ¶ func (c *Capture) Close() error type Playback ¶ type Playback struct { // contains filtered or unexported fields } func StartPlayback ¶ func StartPlayback(ctx context.Context) (*Playback, error) func (*Playback) Close ¶ func (p *Playback) Close() error func (*Playback) Write ¶ func (p *Playback) Write(samples []int16) Source Files ¶ View all Source files capture.gomalgo_hooks_linux.goplayback.go Click to show internal directories. Click to hide internal directories.