wav

package
v0.0.0-...-c95f312 Latest Latest
Warning

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

Go to latest
Published: Aug 15, 2017 License: MIT Imports: 7 Imported by: 0

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(rc io.ReadCloser) (s beep.StreamSeekCloser, format beep.Format, err error)

Decode takes a ReadCloser 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 ReadSeekCloser, 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