wav

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Oct 7, 2021 License: Apache-2.0 Imports: 8 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Decode

func Decode(r io.ReadSeeker) (audio.Decoded, error)

Decode decodes a wav audio.

func DecodeConfig

func DecodeConfig(r io.ReadSeeker) (cfg audio.Config, err error)

DecodeConfig is not implemented.

func RegisterFormat

func RegisterFormat(tag int, decode DecodeFunc)

RegisterFormat registers a wav decoder extension.

Types

type Config

type Config struct {
	Format        int // Format Tag
	SampleRate    int
	DataSize      int64
	HeaderSize    int64
	Channels      int
	BitsPerSample int
	BlockAlign    int
}

Config type.

func (*Config) SamplesPerBlock

func (p *Config) SamplesPerBlock() int

SamplesPerBlock returns samples per block.

type DecodeFunc

type DecodeFunc = func(r *bufiox.Reader, cfg *Config) (audio.Decoded, error)

DecodeFunc prototype.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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