Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func L16MixSat160 ¶
func L16MixSat160(dst, src *int16)
Mixes together two audio frames containing 160 samples. Uses saturation adding so you don't hear clipping if ppl talk loud. Uses 128-bit SIMD instructions so we can add eight numbers at the same time.
func LinearToUlaw ¶
Compresses a PCM audio sample into a G.711 μ-Law sample. The BSR instruction is what makes this code fast.
TODO(jart): How do I make assembly use proper types?
func UlawToLinear ¶
Turns a μ-Law byte back into an audio sample.
Types ¶
type AWGN ¶
type AWGN struct {
// contains filtered or unexported fields
}
Awgn contains the white noise generator state information.
func NewAWGN ¶
Returns a new comfort noise generator. The volume param is in decibels and -50.0 is a good value. The closer you get to 0.0, the louder the noise will become.
func NewAWGN_DBM0 ¶
func NewAWGN_DBOV ¶
Click to show internal directories.
Click to hide internal directories.