Documentation ¶
Overview ¶
Package portaudio provides a portaudio backend for the engine.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type DeviceList ¶
type DeviceList []*portaudio.DeviceInfo
DeviceList is a list of portaudio devices.
func Initialize ¶
func Initialize() (DeviceList, error)
Initialize initializes portaudio and returns the list of devices on the machine.
func (DeviceList) String ¶
func (l DeviceList) String() string
type PortAudio ¶
type PortAudio struct {
// contains filtered or unexported fields
}
PortAudio is a wrapper for a portaudio client.
func New ¶
func New(inDeviceIndex, outDeviceIndex int, latency string, frameSize, sampleRate int) (*PortAudio, error)
New returns a new PortAudio.
func (*PortAudio) Devices ¶
func (pa *PortAudio) Devices() (in *portaudio.DeviceInfo, out *portaudio.DeviceInfo)
Devices returns the devices currently in use by portaudio.
func (*PortAudio) SampleRate ¶
SampleRate returns the sample rate
Click to show internal directories.
Click to hide internal directories.