amp

package
v1.0.260758 Latest Latest
Warning

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

Go to latest
Published: Jul 30, 2026 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package amp is a Winamp-flavored music player: open local files, playlist, play/pause/stop/next/prev, a small peak-amplitude visualizer. Decoding is always via an ffmpeg subprocess (a soft runtime dependency — nothing else in the desktop needs it) into raw PCM, never a linked decoder library, keeping the desktop itself free of format-specific code. See internal/audio for playback and pkg/uiapp.MediaClock for transport timing, both built for this in Phase 2 of the same effort.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type App

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

App is the Amp player.

func New

func New() *App

func (*App) Close

func (a *App) Close() error

func (*App) Draw

func (a *App) Draw(cv *uiapp.Canvas) error

func (*App) Handle

func (a *App) Handle(e uiapp.Event) error

func (*App) Init

func (a *App) Init(ctx *uiapp.Context) error

Jump to

Keyboard shortcuts

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