audio

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Feb 3, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LocalResolver

type LocalResolver struct {
	BasePath string // e.g., "/audio"
}

LocalResolver returns local file server paths

func (*LocalResolver) ResolveURL

func (r *LocalResolver) ResolveURL(filePath string) (string, error)

ResolveURL returns the local path for a track

type Resolver

type Resolver interface {
	ResolveURL(filePath string) (string, error)
}

Resolver resolves logical file paths to playable URLs

func NewResolver

func NewResolver(basePath string) Resolver

NewResolver creates a local file resolver for the given base path

Jump to

Keyboard shortcuts

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