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.
Song::Song |
( |
const char * |
_uri, |
|
|
size_t |
uri_length, |
|
|
Directory & |
parent |
|
) |
| |
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.
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.
allocate a new song with a local file name
bool Song::UpdateFile |
( |
Storage & |
storage | ) |
|
End of this sub-song within the file.
Unused if zero.
Definition at line 84 of file Song.hxx.
constexpr auto Song::link_mode = boost::intrusive::normal_link |
|
static |
The Directory that contains this song.
Must be non-nullptr. directory this way.
Definition at line 71 of file Song.hxx.
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 of this sub-song within the file.
Definition at line 78 of file Song.hxx.
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: