beep: github.com/faiface/beep/mp3 Index | Files

package mp3

import "github.com/faiface/beep/mp3"

Package mp3 implements audio data decoding in MP3 format.

Index

Package Files

decode.go

func Decode Uses

func Decode(rc io.ReadCloser) (s beep.StreamSeekCloser, format beep.Format, err error)

Decode takes a ReadCloser containing audio data in MP3 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.

Package mp3 imports 5 packages (graph) and is imported by 1 packages. Updated 2017-08-13. Refresh now. Tools for package owners.