pcm

package module
v0.1.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 26, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewDecoderEngine

func NewDecoderEngine(stream media.StreamInfo, cfg DecoderConfig) (engine.DecoderEngine, error)

func NewEncoderEngine

func NewEncoderEngine(stream media.StreamInfo, cfg EncoderConfig) engine.EncoderEngine

Types

type DecoderConfig

type DecoderConfig internal.DecoderConfig

func MustNewDecoderConfig

func MustNewDecoderConfig(options ...DecoderConfigOption) DecoderConfig

func NewDecoderConfig

func NewDecoderConfig(options ...DecoderConfigOption) (DecoderConfig, error)

func (DecoderConfig) Resolve

func (c DecoderConfig) Resolve() internal.DecoderConfig

func (DecoderConfig) ResolveDefault

func (c DecoderConfig) ResolveDefault() internal.DecoderConfig

func (DecoderConfig) Validate

func (c DecoderConfig) Validate() error

type DecoderConfigOption

type DecoderConfigOption interface {
	// contains filtered or unexported methods
}

func WithByteOrder

func WithByteOrder(v binary.ByteOrder) DecoderConfigOption

type EncoderConfig

type EncoderConfig internal.EncoderConfig

func MustNewEncoderConfig

func MustNewEncoderConfig(options ...EncoderConfigOption) EncoderConfig

func NewEncoderConfig

func NewEncoderConfig(options ...EncoderConfigOption) (EncoderConfig, error)

func (EncoderConfig) Resolve

func (c EncoderConfig) Resolve() internal.EncoderConfig

func (EncoderConfig) ResolveDefault

func (c EncoderConfig) ResolveDefault() internal.EncoderConfig

func (EncoderConfig) Validate

func (c EncoderConfig) Validate() error

type EncoderConfigOption

type EncoderConfigOption interface {
	// contains filtered or unexported methods
}

func WithADPCM

func WithADPCM(v params.ADPCM) EncoderConfigOption

func WithCodecID

func WithCodecID(v media.CodecID) EncoderConfigOption

Directories

Path Synopsis
test

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL