speakers

package
v0.0.0-...-e0ac686 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 1, 2023 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Speakers

type Speakers struct {
	// contains filtered or unexported fields
}

Speakers implemented using portaudio

func New

func New() *Speakers

NewPortaudioSpeakers starts audio output using portaudio

func (*Speakers) Callback

func (s *Speakers) Callback(out []float32)

Callback from portaudio to consume the audio data written to the channel

func (*Speakers) Cleanup

func (s *Speakers) Cleanup()

Cleanup returns resources to the OS

func (*Speakers) Left

func (s *Speakers) Left() chan float32

Left returns the channel that feeds the left speaker

func (*Speakers) Right

func (s *Speakers) Right() chan float32

Right returns the channel that feeds the right speaker

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL