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 )
Click to show internal directories.
Click to hide internal directories.