Versions in this module Expand all Collapse all v0 v0.0.1 Aug 4, 2022 Changes in this version + const AudioFormatALaw + const AudioFormatIEEEFloat + const AudioFormatMULaw + const AudioFormatPCM + type Reader struct + func NewReader(r riff.RIFFReader) *Reader + func (r *Reader) Duration() (time.Duration, error) + func (r *Reader) FloatValue(sample Sample, channel uint) float64 + func (r *Reader) Format() (format *WavFormat, err error) + func (r *Reader) Info() (*WavInfo, error) + func (r *Reader) IntValue(sample Sample, channel uint) int + func (r *Reader) Read(p []byte) (n int, err error) + func (r *Reader) ReadSamples(params ...uint32) (samples []Sample, err error) + type Sample struct + Values [2]int + type WavData struct + Size uint32 + type WavFormat struct + AudioFormat uint16 + BitsPerSample uint16 + BlockAlign uint16 + ByteRate uint32 + NumChannels uint16 + SampleRate uint32 + type WavInfo struct + FrameRate int + FrameSize int + NChannels int + NFrames int + SampleWidth int + type Writer struct + Format *WavFormat + func NewWriter(w io.Writer, numSamples uint32, numChannels uint16, sampleRate uint32, ...) (writer *Writer) + func (w *Writer) WriteSamples(samples []Sample) (err error)