vorbis

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2019 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

Package vorbis provides Ogg/Vorbis decoder.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Stream

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

Stream is a decoded audio stream.

func Decode

func Decode(context *audio.Context, src audio.ReadSeekCloser) (*Stream, error)

Decode decodes Ogg/Vorbis data to playable stream.

The sample rate must be same as that of audio context.

func (*Stream) Close

func (s *Stream) Close() error

Read is implementation of io.Closer's Close.

func (*Stream) Read

func (s *Stream) Read(p []byte) (int, error)

Read is implementation of io.Reader's Read.

func (*Stream) Seek

func (s *Stream) Seek(offset int64, whence int) (int64, error)

Seek is implementation of io.Seeker's Seek.

func (*Stream) Size

func (s *Stream) Size() int64

Size returns the size of decoded stream in bytes.

Jump to

Keyboard shortcuts

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