Documentation ¶
Index ¶
- func FreeBuffer(b *Buffer)
- func SetBufferSize(s int)
- func SetSampleRate(r int)
- type AudioCallback
- type AudioInterface
- type AudioInterfaceCallback
- type Buffer
- func (b *Buffer) Add(n *Buffer)
- func (b *Buffer) Channels() int
- func (b *Buffer) Clear()
- func (b *Buffer) Copy() *Buffer
- func (b *Buffer) GetSample(channel, index int) float64
- func (b *Buffer) Len() int
- func (b *Buffer) Multiply(n *Buffer)
- func (b *Buffer) SetSample(channel, index int, sample float64)
- type DAC
- type Output
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SetBufferSize ¶
func SetBufferSize(s int)
SetBufferSize initializes the buffer cache with sample size
func SetSampleRate ¶
func SetSampleRate(r int)
SetSampleRate sets the sample rate of buffers and re initilizes the cache
Types ¶
type AudioCallback ¶
AudioCallback will be executed at every sample buffer
type AudioInterface ¶
type AudioInterface func(sampleRate, bufferSize, inChannels, outChannels int) (AudioInterfaceCallback, error)
AudioInterface constructs a new input callback
type AudioInterfaceCallback ¶
type AudioInterfaceCallback func(AudioCallback) error
AudioInterfaceCallback Will run on the audio interface
type Buffer ¶
Buffer holds audio samples
Click to show internal directories.
Click to hide internal directories.