oggopusfile

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2020 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type OggOpusfile

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

func NewOggOpusfile

func NewOggOpusfile(path string) (*OggOpusfile, error)

Opens the Opus File for later Decoding (see DecodeOpusFile) path The path to the file to open.

func (*OggOpusfile) GetChannels

func (o *OggOpusfile) GetChannels() (int, error)

Returns channel count of the audiosource

func (*OggOpusfile) GetPCMFrame

func (o *OggOpusfile) GetPCMFrame(duration int) ([]int16, error)

Get a slice of PCM Data of Opus File

func (*OggOpusfile) GetTitle

func (o *OggOpusfile) GetTitle() string

func (*OggOpusfile) GetTotalPCMSamples

func (o *OggOpusfile) GetTotalPCMSamples(link int) (int64, error)

Get the total PCM length (number of samples at 48 kHz) of the stream, or of an individual link in a (possibly-chained) Ogg Opus stream.

link	The index of the link whose PCM length should be computed. Use a negative number to get the PCM length of the entire stream.
Returns The PCM length of the entire stream if _li is negative, the PCM length of link _li if it is non-negative

Jump to

Keyboard shortcuts

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