Documentation ¶
Overview ¶
Package vorbis is a vorbis decoder implementation in pure golang. it was wrote from scratch follow the [Vorbis I specification](https://xiph.org/vorbis/doc/Vorbis_I_spec.html).
Index ¶
- type MDCT
- type PacketReader
- type Vorbis
- func (vb *Vorbis) BitsPerSample() int
- func (vb *Vorbis) Close() error
- func (vb *Vorbis) Comment(name string) string
- func (vb *Vorbis) Comments() map[string]string
- func (vb *Vorbis) Duration() time.Duration
- func (vb *Vorbis) Frequency() int
- func (vb *Vorbis) Init(r io.Reader) (err error)
- func (vb *Vorbis) NumTracks() int
- func (vb *Vorbis) Read(buf []byte) (n int, err error)
- func (vb *Vorbis) SampleType() wav.Type
- func (vb *Vorbis) String() string
- func (vb *Vorbis) Vendor() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MDCT ¶
type MDCT struct { N int // 1/1 N2 int // 1/2 N4 int // 1/4 N8 int // 1/8 N43 int // 3/4 LDN int // ld(n) A []float32 B []float32 C []float32 // contains filtered or unexported fields }
MDCT calculator
type PacketReader ¶
type Vorbis ¶
type Vorbis struct {
// contains filtered or unexported fields
}
Vorbis decoder
func (*Vorbis) BitsPerSample ¶
BitsPerSample reports bits per sample (single track)
func (*Vorbis) SampleType ¶
SampleType reporst sample's data type
Click to show internal directories.
Click to hide internal directories.