wav

package
v0.0.0-...-c7cdaa0 Latest Latest
Warning

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

Go to latest
Published: Sep 3, 2013 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Format

type Format struct {
	FormatTag     int16
	Channels      int16
	SampleRate    int32
	AvgBytes      int32
	BlockAlign    int16
	BitsPerSample int16
}

type Format2

type Format2 struct {
	Format
	SizeOfExtension int16
}

type Format3

type Format3 struct {
	Format2
	ValidBitsPerSample int16
	ChannelMask        int32
	SubFormat          [16]byte
}

type Wav

type Wav struct {
	Format
	Data []int16
	// contains filtered or unexported fields
}

func NewClip

func NewClip(path string) (*Wav, error)

func ReadWavHeader

func ReadWavHeader(reader io.Reader) (*Wav, error)

func (*Wav) AudioFormat

func (this *Wav) AudioFormat() audio.Format

func (*Wav) BufferLength

func (this *Wav) BufferLength() int

func (*Wav) Clone

func (this *Wav) Clone() (audio.AudioClip, error)

func (*Wav) Length

func (this *Wav) Length() int

func (*Wav) NextBuffer

func (this *Wav) NextBuffer(buff []int16, mono bool) int

func (*Wav) SampleRate

func (this *Wav) SampleRate() int

func (*Wav) SetPosition

func (this *Wav) SetPosition(pos int)

Jump to

Keyboard shortcuts

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