Documentation ¶
Overview ¶
Package portaudio allows to play audio with Portaudio API.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Devices ¶
Devices return devices available through portaudio. First slice contains devices that have input channels, second slice contains devices that have output channels and third slice contains devices that doesn't have any channels.
func Initialize ¶
func Initialize() error
Initialize initializes internal portaudio structures. Must be called before any other call to this package.
func Sink ¶
func Sink(d Device) pipe.SinkAllocatorFunc
Sink represets portaudio sink which allows to play audio. If no device is provided, the current system default will be used. Sink returns new portaudio sink allocator closure.
Types ¶
type Device ¶
type Device struct {
// contains filtered or unexported fields
}
Device is the device accessed through portaudio.
func DefaultInputDevice ¶
DefaultInputDevice returns input device used by system as default at the moment.
func DefaultOutputDevice ¶
DefaultOutputDevice returns output device used by system as default at the moment.