Versions in this module Expand all Collapse all v1 v1.0.0 Apr 4, 2019 Changes in this version + var DataFormatID = [4]byte + var ErrFmtNotSupported = errors.New("format not supported") + var ErrUnexpectedData = errors.New("unexpected data content") + var FmtID = [4]byte + var RiffID = [4]byte + var WavFormatID = [4]byte + func Duration(r io.Reader) (time.Duration, error) + type Chunk struct + ID [4]byte + Pos int + R io.Reader + Size int + Wg *sync.WaitGroup + func (ch *Chunk) DecodeWavHeader(p *Parser) error + func (ch *Chunk) Done() + func (ch *Chunk) Drain() + func (ch *Chunk) IsFullyRead() bool + func (ch *Chunk) Read(p []byte) (n int, err error) + func (ch *Chunk) ReadBE(dst interface{}) error + func (ch *Chunk) ReadByte() (byte, error) + func (ch *Chunk) ReadLE(dst interface{}) error + type Parser struct + AvgBytesPerSec uint32 + BitsPerSample uint16 + BlockAlign uint16 + Chan chan *Chunk + ChunkParserTimeout time.Duration + Format [4]byte + ID [4]byte + NumChannels uint16 + SampleRate uint32 + Size uint32 + WavAudioFormat uint16 + Wg *sync.WaitGroup + func New(r io.Reader) *Parser + func (c *Parser) Duration() (time.Duration, error) + func (c *Parser) IDnSize() ([4]byte, uint32, error) + func (c *Parser) NextChunk() (*Chunk, error) + func (c *Parser) ParseHeaders() error + func (c *Parser) String() string + func (p *Parser) Parse() error