kgm

package
v0.2.11 Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrKgmMagicHeader = errors.New("kgm magic header not matched")
)

Functions

func NewDecoder

func NewDecoder(p *common.DecoderParams) common.Decoder

Types

type Decoder

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

func (*Decoder) Read

func (d *Decoder) Read(buf []byte) (int, error)

func (*Decoder) Validate

func (d *Decoder) Validate() (err error)

Validate checks if the file is a valid Kugou (.kgm, .vpr, .kgma) file. rd will be seeked to the beginning of the encrypted audio.

Jump to

Keyboard shortcuts

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