Versions in this module Expand all Collapse all v1 v1.0.0 Oct 13, 2018 Changes in this version + var ErrInvalidBuffer = errors.New("invalid buffer") + var FormatMono22500 = &Format + var FormatMono44100 = &Format + var FormatMono48000 = &Format + var FormatMono96000 = &Format + var FormatStereo22500 = &Format + var FormatStereo44100 = &Format + var FormatStereo48000 = &Format + var FormatStereo96000 = &Format + func IEEEFloatToInt(b [10]byte) int + func Int24BETo32(bytes []byte) int32 + func Int24LETo32(bytes []byte) int32 + func Int32toInt24BEBytes(n int32) []byte + func Int32toInt24LEBytes(n int32) []byte + func IntMaxSignedValue(b int) int + func IntToIEEEFloat(i int) [10]byte + func Uint24to32(bytes []byte) uint32 + func Uint32toUint24Bytes(n uint32) []byte + type Buffer interface + AsFloat32Buffer func() *Float32Buffer + AsFloatBuffer func() *FloatBuffer + AsIntBuffer func() *IntBuffer + Clone func() Buffer + NumFrames func() int + PCMFormat func() *Format + type Float32Buffer struct + Data []float32 + Format *Format + SourceBitDepth int + func (buf *Float32Buffer) AsFloat32Buffer() *Float32Buffer + func (buf *Float32Buffer) AsFloatBuffer() *FloatBuffer + func (buf *Float32Buffer) AsIntBuffer() *IntBuffer + func (buf *Float32Buffer) Clone() Buffer + func (buf *Float32Buffer) NumFrames() int + func (buf *Float32Buffer) PCMFormat() *Format + type FloatBuffer struct + Data []float64 + Format *Format + func (buf *FloatBuffer) AsFloat32Buffer() *Float32Buffer + func (buf *FloatBuffer) AsFloatBuffer() *FloatBuffer + func (buf *FloatBuffer) AsIntBuffer() *IntBuffer + func (buf *FloatBuffer) Clone() Buffer + func (buf *FloatBuffer) NumFrames() int + func (buf *FloatBuffer) PCMFormat() *Format + type Format struct + NumChannels int + SampleRate int + type IntBuffer struct + Data []int + Format *Format + SourceBitDepth int + func (buf *IntBuffer) AsFloat32Buffer() *Float32Buffer + func (buf *IntBuffer) AsFloatBuffer() *FloatBuffer + func (buf *IntBuffer) AsIntBuffer() *IntBuffer + func (buf *IntBuffer) Clone() Buffer + func (buf *IntBuffer) NumFrames() int + func (buf *IntBuffer) PCMFormat() *Format + type PCMBuffer struct + DataType PCMDataFormat + F32 []float32 + F64 []float64 + Format *Format + I16 []int16 + I32 []int32 + I8 []int8 + SourceBitDepth uint8 + func (b *PCMBuffer) AsF32() (out []float32) + func (b *PCMBuffer) AsF64() (out []float64) + func (b *PCMBuffer) AsFloat32Buffer() *Float32Buffer + func (b *PCMBuffer) AsFloatBuffer() *FloatBuffer + func (b *PCMBuffer) AsI16() (out []int16) + func (b *PCMBuffer) AsI32() (out []int32) + func (b *PCMBuffer) AsI8() (out []int8) + func (b *PCMBuffer) AsInt() (out []int) + func (b *PCMBuffer) AsIntBuffer() *IntBuffer + func (b *PCMBuffer) Clone() Buffer + func (b *PCMBuffer) Len() int + func (b *PCMBuffer) NumFrames() int + func (b *PCMBuffer) PCMFormat() *Format + func (b *PCMBuffer) SwitchPrimaryType(t PCMDataFormat) + type PCMDataFormat uint8 + const DataTypeF32 + const DataTypeF64 + const DataTypeI16 + const DataTypeI32 + const DataTypeI8 + const DataTypeUnknown