ogg

package
v0.0.0-...-ea4d24e Latest Latest
Warning

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

Go to latest
Published: Sep 26, 2021 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package ogg wraps libvorbis to provide the parent audio package a codec for Ogg/Vorbis.

Currently only a decoder is implemented.

Index

Constants

This section is empty.

Variables

View Source
var Magic = []byte("OggS")

Magic is the magic header of the Ogg format. It is at the very beginning of the file.

View Source
var SoundFileCheckOgg = audio.SoundFileCheckMagic(Magic, 0)

SoundFileCheckOgg is the check function of the Ogg format.

Functions

This section is empty.

Types

type SoundFileReaderOgg

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

func (*SoundFileReaderOgg) Close

func (r *SoundFileReaderOgg) Close() error

func (*SoundFileReaderOgg) Info

func (*SoundFileReaderOgg) Open

func (r *SoundFileReaderOgg) Open(file io.ReadSeeker) (info audio.SoundFileInfo, err error)

func (*SoundFileReaderOgg) Read

func (r *SoundFileReaderOgg) Read(data []int16) (samplesRead int64, err error)

func (*SoundFileReaderOgg) Seek

func (r *SoundFileReaderOgg) Seek(sampleOffset int64) error

Jump to

Keyboard shortcuts

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