A song file inside the configured music directory.
More...
#include <Song.hxx>
|
static constexpr auto | link_mode = boost::intrusive::normal_link |
|
A song file inside the configured music directory.
Internal SimpleDatabase class.
Definition at line 44 of file Song.hxx.
◆ Hook
◆ LinkMode
◆ Song()
Song::Song |
( |
const char * |
_uri, |
|
|
size_t |
uri_length, |
|
|
Directory & |
parent |
|
) |
| |
◆ ~Song()
◆ Export()
◆ Free()
◆ GetURI()
gcc_pure std::string Song::GetURI |
( |
| ) |
const |
|
noexcept |
Returns the URI of the song in UTF-8 encoding, including its location within the music directory.
◆ LoadFile()
allocate a new song structure with a local file name and attempt to load its metadata.
If all decoder plugin fail to read its meta data, nullptr is returned.
◆ NewFile()
allocate a new song with a local file name
◆ NewFrom()
◆ UpdateFile()
bool Song::UpdateFile |
( |
Storage & |
storage | ) |
|
◆ end_time
End of this sub-song within the file.
Unused if zero.
Definition at line 84 of file Song.hxx.
◆ link_mode
constexpr auto Song::link_mode = boost::intrusive::normal_link |
|
static |
◆ mtime
◆ parent
The Directory that contains this song.
Must be non-nullptr. directory this way.
Definition at line 71 of file Song.hxx.
◆ siblings
Pointers to the siblings of this directory within the parent directory.
It is unused (undefined) if this song is not in the database.
This attribute is protected with the global db_mutex. Read access in the update thread does not need protection.
Definition at line 63 of file Song.hxx.
◆ start_time
Start of this sub-song within the file.
Definition at line 78 of file Song.hxx.
◆ tag
◆ uri
char Song::uri[sizeof(int)] |
The file name.
Definition at line 89 of file Song.hxx.
The documentation for this struct was generated from the following file: