flac

package
v0.0.0-...-27c3feb Latest Latest
Warning

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

Go to latest
Published: May 24, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetVersion

func GetVersion() string

Types

type FlacDecoder

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

func NewFlacFrameDecoder

func NewFlacFrameDecoder(maxOutputSampleBitDepth int) (*FlacDecoder, error)

func (*FlacDecoder) Close

func (d *FlacDecoder) Close() error

func (*FlacDecoder) DecodeSamples

func (d *FlacDecoder) DecodeSamples(samples int, audio []byte) (int, error)

func (*FlacDecoder) Delete

func (d *FlacDecoder) Delete() error

func (*FlacDecoder) GetFormat

func (d *FlacDecoder) GetFormat() (int64, int, int)

func (*FlacDecoder) GetResolvedState

func (d *FlacDecoder) GetResolvedState() string

func (*FlacDecoder) OpenFile

func (d *FlacDecoder) OpenFile(filePath string) error

func (*FlacDecoder) Seek

func (d *FlacDecoder) Seek(offset int64, whence int) (int64, error)

func (*FlacDecoder) TellCurrentSample

func (d *FlacDecoder) TellCurrentSample() int64

func (*FlacDecoder) TotalSamples

func (d *FlacDecoder) TotalSamples() int64

type RingBuffer

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

func NewRingBuffer

func NewRingBuffer(capacity int) RingBuffer

func (*RingBuffer) Capacity

func (rb *RingBuffer) Capacity() int

func (*RingBuffer) Read

func (rb *RingBuffer) Read(n int, dst []byte) (int, error)

func (*RingBuffer) Reset

func (rb *RingBuffer) Reset()

func (*RingBuffer) Size

func (rb *RingBuffer) Size() int

func (*RingBuffer) Write

func (rb *RingBuffer) Write(data []byte) (int, error)

Jump to

Keyboard shortcuts

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