vorbiscomment

package
v0.0.0-...-19d94b7 Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2024 License: AGPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateImageComment

func GenerateImageComment(img []byte, imgDescription string, imgType uint32) (string, error)

GenerateImageComment generates a vorbis comment string from an image file. imgType is a picture type according to ID3v2. Does not check that the image is valid for the picture type(32x32 icon). https://xiph.org/flac/format.html#metadata_block_picture

func WriteOggVorbis

func WriteOggVorbis(w io.Writer, o *OggVorbis) error

Types

type OggVorbis

type OggVorbis struct {
	VendorString string
	Comments     []string
	// contains filtered or unexported fields
}

func ReadOggVorbis

func ReadOggVorbis(r io.Reader) (*OggVorbis, error)

ReadOggVorbis create OggVorbis struct from read in file

Jump to

Keyboard shortcuts

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