Documentation
¶
Overview ¶
Package gosoundio is a Go wrapper for libsoundio, cross-platform library for real-time audio input and output.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Device ¶
type Device struct {
// contains filtered or unexported fields
}
func (Device) IsRaw ¶
IsRaw returns true if you are directly opening the hardware device without going through a proxy such as dmix, PulseAudio, or JACK.
When you open a raw device, other applications on the computer are not able to simultaneously access the device. Raw devices do not perform automatic resampling and thus tend to have fewer formats available.
type Error ¶
type Error int
Error represents a libsoundio error.
const ( ErrorNoMem Error = Error(C.SoundIoErrorNoMem) ErrorInitAudioBackend Error = Error(C.SoundIoErrorInitAudioBackend) ErrorSystemResources Error = Error(C.SoundIoErrorSystemResources) ErrorOpeningDevice Error = Error(C.SoundIoErrorOpeningDevice) ErrorNoSuchDevice Error = Error(C.SoundIoErrorNoSuchDevice) ErrorInvalid Error = Error(C.SoundIoErrorInvalid) ErrorStreaming Error = Error(C.SoundIoErrorStreaming) ErrorIncompatibleDevice Error = Error(C.SoundIoErrorIncompatibleDevice) ErrorNoSuchClient Error = Error(C.SoundIoErrorNoSuchClient) ErrorIncompatibleBackend Error = Error(C.SoundIoErrorIncompatibleBackend) ErrorBackendDisconnected Error = Error(C.SoundIoErrorBackendDisconnected) ErrorInterrupted Error = Error(C.SoundIoErrorInterrupted) ErrorUnderflow Error = Error(C.SoundIoErrorUnderflow) ErrorEncodingString Error = Error(C.SoundIoErrorEncodingString) )
SoundIo Errors.
type OutStream ¶
type OutStream struct {
// contains filtered or unexported fields
}
func (*OutStream) ClearBuffer ¶
type SoundIO ¶
type SoundIO struct {
// contains filtered or unexported fields
}
func CreateSoundIO ¶
func (SoundIO) DefaultOutputDeviceIndex ¶
func (SoundIO) Disconnect ¶
func (s SoundIO) Disconnect()
type WriteCallback ¶
Click to show internal directories.
Click to hide internal directories.