Documentation ¶
Overview ¶
Package sample models an audio sample
Package sample models an audio sample
Index ¶
- func ConfigureOutput(s spec.AudioSpec)
- func OutNextBytes() (out []byte)
- func SetOutputCallback(fn OutNextCallbackFunc)
- type OutNextCallbackFunc
- type Sample
- type Value
- func OutNext() []Value
- func ValueOfByteS8(sample byte) Value
- func ValueOfByteU8(sample byte) Value
- func ValueOfBytesF32LSB(sample []byte) Value
- func ValueOfBytesF64LSB(sample []byte) Value
- func ValueOfBytesS16LSB(sample []byte) Value
- func ValueOfBytesS32LSB(sample []byte) Value
- func ValueOfBytesU16LSB(sample []byte) Value
- func (this Value) Abs() Value
- func (this Value) ToByteS8() byte
- func (this Value) ToByteU8() byte
- func (this Value) ToBytesF32LSB() (out []byte)
- func (this Value) ToBytesF64LSB() (out []byte)
- func (this Value) ToBytesS16LSB() (out []byte)
- func (this Value) ToBytesS32LSB() (out []byte)
- func (this Value) ToBytesU16LSB() (out []byte)
- func (this Value) ToInt16() int16
- func (this Value) ToInt32() int32
- func (this Value) ToInt8() int8
- func (this Value) ToUint16() uint16
- func (this Value) ToUint8() uint8
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConfigureOutput ¶
func OutNextBytes ¶
func OutNextBytes() (out []byte)
OutNextBytes to mix the next sample for all channels, in bytes
func SetOutputCallback ¶
func SetOutputCallback(fn OutNextCallbackFunc)
SetOutNextCallback to set streaming callback function
Types ¶
type OutNextCallbackFunc ¶
type OutNextCallbackFunc func() []Value
OutNextCallbackFunc to stream mix out from mix
type Value ¶
type Value float64
func ValueOfByteS8 ¶
func ValueOfByteU8 ¶
func ValueOfBytesF32LSB ¶
func ValueOfBytesF64LSB ¶
func ValueOfBytesS16LSB ¶
func ValueOfBytesS32LSB ¶
func ValueOfBytesU16LSB ¶
func (Value) ToBytesF32LSB ¶
func (Value) ToBytesF64LSB ¶
func (Value) ToBytesS16LSB ¶
func (Value) ToBytesS32LSB ¶
func (Value) ToBytesU16LSB ¶
Click to show internal directories.
Click to hide internal directories.