decoder

package
v0.0.0-...-c5379f9 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2024 License: MIT Imports: 7 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidPath = errors.New("invalid path")
)

Functions

This section is empty.

Types

type Decoder

type Decoder interface {
	FullPCMBuffer() (*audio.IntBuffer, error)
	PCMLen() int64
	FwdToPCM() error
	PCMBuffer(*audio.IntBuffer) (int, error)
	WasPCMAccessed() bool
	SampleBitDepth() int32
	Format() *audio.Format
	Err() error
}

type Format

type Format string
var (
	Unknown Format = "unknown"
	Wav     Format = "wav"
	Aif     Format = "aiff"
)

func FileFormat

func FileFormat(path string) (Format, error)

FileFormat returns the known format of the passed path.

Jump to

Keyboard shortcuts

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