songreader

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Aug 22, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SongReader

type SongReader struct {
	Song song.Song
	// contains filtered or unexported fields
}

func NewSongReader

func NewSongReader(cfg config.Config, song song.Song, offset time.Duration) *SongReader

NewSongReader will imediately reaturn, but its Read method will block until the song has been cached and decoding has begun.

func (*SongReader) Close

func (rc *SongReader) Close() error

func (*SongReader) Read

func (rc *SongReader) Read(p []byte) (int, error)

Jump to

Keyboard shortcuts

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