wav

package
Version: v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Aug 31, 2021 License: MIT Imports: 8 Imported by: 77

Documentation

Overview

Package wav implements audio data decoding and encoding in WAVE format.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Decode

func Decode(r io.Reader) (s beep.StreamSeekCloser, format beep.Format, err error)

Decode takes a Reader containing audio data in WAVE format and returns a StreamSeekCloser, which streams that audio. The Seek method will panic if rc is not io.Seeker.

Do not close the supplied Reader, instead, use the Close method of the returned StreamSeekCloser when you want to release the resources.

func Encode

func Encode(w io.WriteSeeker, s beep.Streamer, format beep.Format) (err error)

Encode writes all audio streamed from s to w in WAVE format.

Format precision must be 1 or 2 bytes.

Types

This section is empty.

Jump to

Keyboard shortcuts

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