Documentation ¶ Index ¶ func NewSongs(rf codec.Reader) (codec.Songs, error) type Song func NewSong(rf codec.Reader) (*Song, error) func (s *Song) Close() func (s *Song) Info() (info codec.SongInfo, err error) func (s *Song) Init() (sampleRate, channels int, err error) func (s *Song) Play(n int) (r []float32, err error) Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func NewSongs ¶ func NewSongs(rf codec.Reader) (codec.Songs, error) Types ¶ type Song ¶ type Song struct { Reader codec.Reader // contains filtered or unexported fields } func NewSong ¶ func NewSong(rf codec.Reader) (*Song, error) func (*Song) Close ¶ func (s *Song) Close() func (*Song) Info ¶ func (s *Song) Info() (info codec.SongInfo, err error) func (*Song) Init ¶ func (s *Song) Init() (sampleRate, channels int, err error) func (*Song) Play ¶ func (s *Song) Play(n int) (r []float32, err error) Source Files ¶ View all Source files mpa.go Click to show internal directories. Click to hide internal directories.