vorbis

package
v0.10.6 Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2026 License: GPL-3.0 Imports: 9 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const (
	// DataChunkSize represents the amount of data read from physical bitstream on each iteration.
	DataChunkSize = 4096 // could be also 8192
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Decoder

type Decoder struct {
	sync.Mutex

	SampleRate int32
	Channels   int32
	// contains filtered or unexported fields
}

Decoder implements an OggVorbis decoder.

func New

New creates and initialises a new OggVorbis decoder for the provided bytestream.

func (*Decoder) Close

func (d *Decoder) Close()

Close stops and finalizes the decoding process, releases the allocated resources. Puts the decoder into an unrecoverable state.

func (*Decoder) PositionMs

func (d *Decoder) PositionMs() int64

func (*Decoder) Read

func (d *Decoder) Read(p []float32) (n int, err error)

func (*Decoder) SetPositionMs

func (d *Decoder) SetPositionMs(pos int64) (err error)

type Info

type Info struct {
	Channels   int32
	SampleRate int32
	Comments   []string
	Vendor     string
}

Info represents basic information about the audio in a Vorbis bitstream.

type MetadataPage added in v0.1.3

type MetadataPage struct {
	// contains filtered or unexported fields
}

func ExtractMetadataPage added in v0.1.3

func ExtractMetadataPage(log librespot.Logger, r io.ReaderAt, limit int64) (librespot.SizedReadAtSeeker, *MetadataPage, error)

func (MetadataPage) GetSeekPosition added in v0.1.3

func (m MetadataPage) GetSeekPosition(samplesPos int64) int64

Jump to

Keyboard shortcuts

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