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
Click to show internal directories.
Click to hide internal directories.