audiocodec

package
v0.5.5 Latest Latest
Warning

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

Go to latest
Published: Apr 4, 2022 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Decoder

type Decoder interface {
	Name() string
	Decode([]byte, []float32, ...Options) (int, error) //float32 output
}

Decoder is the interface which an audio decoder has to implement.

type Encoder

type Encoder interface {
	Name() string
	Encode(interface{}, []byte) (int, error) // typically float32 input
}

Encoder is the interface which an audio encoder has to implement.

type Options

type Options struct {
	Samplerate int
	Channels   int
	Bitdepth   int
}

Options is a struct which can be provided to the Decoder for particular Audio samples. This is useful in case default values shall be overwritten. However the decoder implementation has to support it, of course.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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