vorbis

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2024 License: BSD-3-Clause Imports: 8 Imported by: 0

Documentation

Overview

The following is manually converted from ww2ogg by hcs (https://github.com/hcs64/ww2ogg)

The following is manually converted from vgmstream (https://github.com/vgmstream/vgmstream)

The following is manually converted from hcs's ww2ogg (https://github.com/hcs64/ww2ogg) and vgmstream (https://github.com/vgmstream/vgmstream)

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Channels      uint16
	SampleRate    uint32
	Blocksize0Exp uint8
	Blocksize1Exp uint8

	SetupID   uint32
	Endian    binary.ByteOrder
	StreamEnd uint32
}

type Decoder

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

func NewDecoder

func NewDecoder(r io.ReadSeeker, cfg Config) (*Decoder, error)

func (*Decoder) BufferSize

func (d *Decoder) BufferSize() int

Maximum amount of samples that can be decoded from a single packet.

func (*Decoder) Decode

func (d *Decoder) Decode() ([]float32, error)

Decodes the next packet. Returned slice is only valid until next call of Decode.

Jump to

Keyboard shortcuts

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