serato

package
v0.0.27 Latest Latest
Warning

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

Go to latest
Published: Jun 18, 2025 License: MIT Imports: 17 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrShortRead = errors.New("short read")
)

Functions

func PrintRecord

func PrintRecord(rec *Record) error

func ReadSession

func ReadSession(r io.Reader, trackCB func(Track)) error

Types

type Record

type Record struct {
	Tag     Tag
	Length  int
	Data    []byte
	Decoded any
}

func (Record) MustVersion

func (rec Record) MustVersion() string

func (Record) String

func (rec Record) String() string

type Serato

type Serato struct {
	modutil.ModuleBase
	// contains filtered or unexported fields
}

func (*Serato) Icon added in v0.0.17

func (*Serato) Icon() ([]byte, string, error)

func (*Serato) Start

func (s *Serato) Start(ctx context.Context, deps *modutil.ModuleDeps) error

type Tag

type Tag [4]byte

func ReadTag

func ReadTag(r io.Reader) (Tag, error)

func (Tag) String

func (t Tag) String() string

type Track

type Track struct {
	Artist string
	Title  string
	When   time.Time
}

Directories

Path Synopsis
cmd

Jump to

Keyboard shortcuts

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