Versions in this module Expand all Collapse all v0 v0.1.0 Apr 23, 2024 Changes in this version + const FramesPerBufferUnspecified + func Initialize() error + func IsFormatSupported(p StreamParameters, args ...interface{}) error + func Terminate() error + func Version() int + func VersionText() string + type Buffer interface + type DeviceInfo struct + DefaultHighInputLatency time.Duration + DefaultHighOutputLatency time.Duration + DefaultLowInputLatency time.Duration + DefaultLowOutputLatency time.Duration + DefaultSampleRate float64 + HostApi *HostApiInfo + MaxInputChannels int + MaxOutputChannels int + Name string + func DefaultInputDevice() (*DeviceInfo, error) + func DefaultOutputDevice() (*DeviceInfo, error) + func Devices() ([]*DeviceInfo, error) + type Error C.PaError + const BadBufferPtr + const BadIODeviceCombination + const BadStreamPtr + const BufferTooBig + const BufferTooSmall + const CanNotReadFromACallbackStream + const CanNotReadFromAnOutputOnlyStream + const CanNotWriteToACallbackStream + const CanNotWriteToAnInputOnlyStream + const DeviceUnavailable + const HostApiNotFound + const IncompatibleHostApiSpecificStreamInfo + const IncompatibleStreamHostApi + const InputOverflowed + const InsufficientMemory + const InternalError + const InvalidChannelCount + const InvalidDevice + const InvalidFlag + const InvalidHostApi + const InvalidSampleRate + const NoDefaultInputDevice + const NoDefaultOutputDevice + const NotInitialized + const NullCallback + const OutputUnderflowed + const SampleFormatNotSupported + const StreamIsNotStopped + const StreamIsStopped + const TimedOut + func (err Error) Error() string + type HostApiInfo struct + DefaultInputDevice *DeviceInfo + DefaultOutputDevice *DeviceInfo + Devices []*DeviceInfo + Name string + Type HostApiType + func DefaultHostApi() (*HostApiInfo, error) + func HostApi(apiType HostApiType) (*HostApiInfo, error) + func HostApis() ([]*HostApiInfo, error) + type HostApiType int + const AL + const ALSA + const ASIO + const AudioScienceHPI + const BeOS + const CoreAudio + const DirectSound + const InDevelopment + const JACK + const MME + const OSS + const SoundManager + const WASAPI + const WDMkS + func (t HostApiType) String() string + type Int24 [3]byte + func (i24 *Int24) PutInt32(i32 int32) + type Stream struct + func OpenDefaultStream(numInputChannels, numOutputChannels int, sampleRate float64, ...) (*Stream, error) + func OpenStream(p StreamParameters, args ...interface{}) (*Stream, error) + func (s *Stream) Abort() error + func (s *Stream) AvailableToRead() (int, error) + func (s *Stream) AvailableToWrite() (int, error) + func (s *Stream) Close() error + func (s *Stream) CpuLoad() float64 + func (s *Stream) Info() *StreamInfo + func (s *Stream) Read() error + func (s *Stream) Start() error + func (s *Stream) Stop() error + func (s *Stream) Time() time.Duration + func (s *Stream) Write() error + type StreamCallback interface + type StreamCallbackFlags C.PaStreamCallbackFlags + const InputOverflow + const InputUnderflow + const OutputOverflow + const OutputUnderflow + const PrimingOutput + type StreamCallbackTimeInfo struct + CurrentTime time.Duration + InputBufferAdcTime time.Duration + OutputBufferDacTime time.Duration + type StreamDeviceParameters struct + Channels int + Device *DeviceInfo + HostApiSpecificStreamInfo unsafe.Pointer + Latency time.Duration + func (param *StreamDeviceParameters) SetAsWasapiExclusive() + func (param *StreamDeviceParameters) SetAsWasapiShared() + type StreamFlags C.PaStreamFlags + const ClipOff + const DitherOff + const NeverDropInput + const NoFlag + const PlatformSpecificFlags + const PrimeOutputBuffersUsingStreamCallback + type StreamInfo struct + InputLatency time.Duration + OutputLatency time.Duration + SampleRate float64 + type StreamParameters struct + Flags StreamFlags + FramesPerBuffer int + Input StreamDeviceParameters + Output StreamDeviceParameters + SampleRate float64 + func HighLatencyParameters(in, out *DeviceInfo) (p StreamParameters) + func LowLatencyParameters(in, out *DeviceInfo) (p StreamParameters) + type UnanticipatedHostError struct + Code int + HostApiType HostApiType + Text string + func (err UnanticipatedHostError) Error() string