Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FocusedPanel ¶
type FocusedPanel int
const ( PanelPlayer FocusedPanel = iota PanelTimer PanelMixer PanelVisualizer PanelScene TotalPanels )
type Model ¶
type Model struct {
// Screen Dimensions
Width int
Height int
// Theme
CurrentThemeIdx int
Themes []theme.Palette
// Navigation
FocusedPanel FocusedPanel
// Player State
Stations []components.Station
CurrentStation int
IsPlaying bool
ProgressSec int
ProgressTickCnt int
TotalTrackSec int
MasterVolume int
IsMuted bool
// YouTube State
IsYouTubeModalOpen bool
IsYouTubeListOpen bool
YouTubeListSelected int
TextInput textinput.Model
IsLoadingYouTube bool
YouTubeStatusMsg string
YTTracks []audio.YTTrack
CurrentYTTrackIdx int
IsPlayingYouTube bool
YouTubePlaylistName string
// Timer State
TimerMode components.TimerMode
TimerRemaining int
IsTimerRunning bool
TimerCycle int
MaxTimerCycles int
TimerTickCount int
// Mixer State
AmbientSounds []components.AmbientSound
MixerSelected int
// Visualizer & Scene
Visualizer *components.Visualizer
SceneAnimator *components.SceneAnimator
// Audio Engine
AudioEngine *audio.AudioEngine
}
func InitialModel ¶
func InitialModel() Model
Click to show internal directories.
Click to hide internal directories.