ncm

package
v0.2.17 Latest Latest
Warning

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

Go to latest
Published: Sep 9, 2025 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewDecoder

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

Types

type Decoder

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

func (*Decoder) GetAudioExt

func (d *Decoder) GetAudioExt() string

func (*Decoder) GetAudioMeta

func (d *Decoder) GetAudioMeta(_ context.Context) (common.AudioMeta, error)

func (*Decoder) GetCoverImage

func (d *Decoder) GetCoverImage(ctx context.Context) ([]byte, error)

func (*Decoder) Read

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

func (*Decoder) Validate

func (d *Decoder) Validate() error

Validate checks if the file is a valid Netease .ncm 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