Documentation
¶
Overview ¶
Package resample provides a small pure-Go audio resample filter adapter.
Index ¶
- func Descriptor() filter.Descriptor
- func Register(registry *filter.SimpleRegistry)
- type Factory
- type Filter
- func (f *Filter) Close() error
- func (f *Filter) Descriptor() filter.Descriptor
- func (f *Filter) FilterInto(ctx context.Context, frame *av.Frame, out *filter.Result) error
- func (f *Filter) FlushInto(ctx context.Context, out *filter.Result) error
- func (f *Filter) HandleEvent(_ context.Context, event *av.Event) error
- func (f *Filter) Open(ctx context.Context, config filter.Config) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Descriptor ¶
func Descriptor() filter.Descriptor
func Register ¶
func Register(registry *filter.SimpleRegistry)
Types ¶
type Filter ¶
type Filter struct {
// contains filtered or unexported fields
}
func (*Filter) Descriptor ¶
func (f *Filter) Descriptor() filter.Descriptor
func (*Filter) FilterInto ¶
func (*Filter) FlushInto ¶
FlushInto emits the outputs held back for a right neighbor that will never arrive, holding the final input sample, so the stream's total output count is exactly ceil(inputs*outputRate/inputRate).
func (*Filter) HandleEvent ¶
HandleEvent restarts the conversion timeline when the input jumps, so a discontinuity never interpolates across unrelated audio.