wav

package
v0.0.0-...-0b60053 Latest Latest
Warning

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

Go to latest
Published: Dec 22, 2023 License: MIT Imports: 8 Imported by: 0

README

These files come from faiface's beep repository.

They were copied here so I could remove some of the debug printing which messes with the test UI.

Documentation

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