AudioEngine

package module
v0.0.0-...-cac0121 Latest Latest
Warning

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

Go to latest
Published: May 5, 2026 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Engine

type Engine interface {
	Play(filePath string, seekTo float64, volume int) error
	Stop() error
	Pause() error
	Resume(seekTo float64, volume int) error
	Seek(position float64, volume int) error
	GetState() PlaybackState
	SetOnComplete(callback func())
	GetPosition() float64
	GetDuration() float64
	GetSampleRate() int
	GetChannels() int
}

Engine defines the interface for audio playback backends.

Note: Implementations can use native audio libraries, FFplay, etc.

type PlaybackState

type PlaybackState int
const (
	StateStopped PlaybackState = iota
	StatePlaying
	StatePaused
)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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