Versions in this module Expand all Collapse all v0 v0.4.0 Aug 24, 2023 Changes in this version + const AudioFormatALaw + const AudioFormatG726 + 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) 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 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)