portaudio

package
v0.0.0-...-21b6479 Latest Latest
Warning

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

Go to latest
Published: Sep 13, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PortAudio

type PortAudio struct {
	streams.Streamable

	ChunkSize int
	// contains filtered or unexported fields
}

PortAudio Streamable support. Source: [Portaudio](http://www.portaudio.com) "PortAudio is a free, cross-platform, open-source, audio I/O library. It lets you write simple audio programs in 'C' or C++ that will compile and run on many platforms including Windows, Macintosh OS X, and Unix (OSS/ALSA). It is intended to promote the exchange of audio software between developers on different platforms. Many applications use PortAudio for Audio I/O."

func (*PortAudio) Address

func (p *PortAudio) Address() string

Address correspond to the <IP or Name:PORT>

func (*PortAudio) Configure

func (p *PortAudio) Configure(address string, sampleRate float64, nbChannels int, echo bool, done chan interface{})

func (*PortAudio) Done

func (p *PortAudio) Done() chan interface{}

Done is the cancellation channel

func (*PortAudio) Echo

func (p *PortAudio) Echo() bool

Echo if responding true prints the flow in the stdio

func (*PortAudio) ReadStreamFrom

func (p *PortAudio) ReadStreamFrom(c io.Reader) error

func (*PortAudio) SampleRate

func (p *PortAudio) SampleRate() float64

SampleRate is the sample rate :)

func (*PortAudio) WriteStreamTo

func (p *PortAudio) WriteStreamTo(c io.Writer) error

Jump to

Keyboard shortcuts

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