Documentation
¶
Overview ¶
Package pcm contains stateful, provider-neutral PCM stream utilities.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Resampler ¶
type Resampler struct {
// contains filtered or unexported fields
}
Resampler incrementally converts mono signed 16-bit little-endian PCM with linear interpolation. A Resampler is stateful and must be used by one stream at a time. Push never invents a right-hand sample at a frame boundary; Finalize supplies the terminal hold sample and fixes the exact output length. This makes output independent of how input is partitioned into frames.
func NewResampler ¶
NewResampler creates a mono PCM16 stream resampler.
func (*Resampler) OutputRate ¶
OutputRate returns the immutable destination sample rate.