ogg

package
v0.0.0-...-f915236 Latest Latest
Warning

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

Go to latest
Published: Oct 12, 2011 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Overview

Tag reader implementation for ogg files support.

Index

Constants

View Source
const (
	Extension = ".ogg"
)

Variables

This section is empty.

Functions

func NewDecoder

func NewDecoder() audio.Decoder

NewDecoder returns ogg decoder implementation.

func NewTagReader

func NewTagReader() audio.TagReader

NewTagreader returns newly initialized ogg TagReader implementation.

Types

type Decoder

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

Ogg decoder implementation.

func (*Decoder) Close

func (decoder *Decoder) Close()

See audio.Decoder.

func (*Decoder) Match

func (decoder *Decoder) Match(filename string) bool

See audio.Decoder.

func (*Decoder) Open

func (decoder *Decoder) Open(filename string) os.Error

See audio.Decoder.

func (*Decoder) Read

func (decoder *Decoder) Read(buf []byte) (read int, err os.Error)

See audio.Decoder.

type TagReader

type TagReader struct {
}

Ogg TagReader implementation.

func (*TagReader) Match

func (tr *TagReader) Match(filename string) bool

Match returns true if given file is the supported ogg file.

func (*TagReader) ReadTag

func (tr *TagReader) ReadTag(filename string) (tag *audio.Tag, err os.Error)

ReadTag returns Tag structure filled with values from the given file.

Jump to

Keyboard shortcuts

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