beep: Index | Files

package mp3

import ""

Package mp3 implements audio data decoding in MP3 format.


Package Files


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 5 packages. Updated 2017-08-13. Refresh now. Tools for package owners.