decoder

package
Version: v0.0.0-...-c6aebeb Latest Latest
Warning

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

Go to latest
Published: Apr 4, 2019 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.

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL