audio

package
v0.0.0-...-d48bf00 Latest Latest
Warning

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

Go to latest
Published: Mar 18, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SelectAudioFile

func SelectAudioFile(id string) tea.Cmd

Types

type AudioPlayerModel

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

func NewPlayerModel

func NewPlayerModel(pc *service.PromptConfig) (*AudioPlayerModel, error)

func (*AudioPlayerModel) Clear

func (m *AudioPlayerModel) Clear()

func (AudioPlayerModel) DoTick

func (m AudioPlayerModel) DoTick() tea.Cmd

func (AudioPlayerModel) Init

func (m AudioPlayerModel) Init() tea.Cmd

func (*AudioPlayerModel) InitSpeaker

func (m *AudioPlayerModel) InitSpeaker(id string) any

func (AudioPlayerModel) Update

func (m AudioPlayerModel) Update(msg tea.Msg) (tea.Model, tea.Cmd)

func (AudioPlayerModel) View

func (m AudioPlayerModel) View() string

type SelectAudioFileEvent

type SelectAudioFileEvent struct {
	Id string
}

type StartPlayingEvent

type StartPlayingEvent struct {
	PlayerModel *AudioPlayerModel
}

type Tick

type Tick struct{}

Jump to

Keyboard shortcuts

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