OpenTTD Source 20241224-master-gf74b0cf984
MusicSystem::PlaylistEntry Struct Reference
Inheritance diagram for MusicSystem::PlaylistEntry:
MusicSongInfo

Public Member Functions

 PlaylistEntry (const MusicSet *set, uint set_index)
 
bool IsValid () const
 

Data Fields

const MusicSetset
 music set the song comes from
 
uint set_index
 index of song in set
 
- Data Fields inherited from MusicSongInfo
std::string songname
 name of song displayed in UI
 
uint8_t tracknr
 track number of song displayed in UI
 
std::string filename
 file on disk containing song (when used in MusicSet class)
 
MusicTrackType filetype
 decoder required for song file
 
int cat_index
 entry index in CAT file, for filetype==MTT_MPSMIDI
 
bool loop
 song should play in a tight loop if possible, never ending
 
int override_start
 MIDI ticks to skip over in beginning.
 
int override_end
 MIDI tick to end the song at (0 if no override)
 

Detailed Description

Definition at line 41 of file music_gui.cpp.

Constructor & Destructor Documentation

◆ PlaylistEntry()

MusicSystem::PlaylistEntry::PlaylistEntry ( const MusicSet set,
uint  set_index 
)
inline

Definition at line 45 of file music_gui.cpp.

Member Function Documentation

◆ IsValid()

bool MusicSystem::PlaylistEntry::IsValid ( ) const
inline

Definition at line 46 of file music_gui.cpp.

Field Documentation

◆ set

const MusicSet* MusicSystem::PlaylistEntry::set

music set the song comes from

Definition at line 42 of file music_gui.cpp.

◆ set_index

uint MusicSystem::PlaylistEntry::set_index

index of song in set

Definition at line 43 of file music_gui.cpp.

Referenced by MusicSystem::SetPositionBySetIndex().


The documentation for this struct was generated from the following file: