Internal representation of music tracks. More...
#include <sound_music_track.hpp>
Public Member Functions | |
music_track () | |
music_track (const config &node) | |
music_track (const std::string &v_name) | |
void | write (config &parent_node, bool append) const |
bool | valid () const |
bool | append () const |
bool | immediate () const |
bool | shuffle () const |
bool | play_once () const |
int | ms_before () const |
int | ms_after () const |
const std::string & | file_path () const |
const std::string & | id () const |
const std::string & | title () const |
void | set_play_once (bool v) |
Private Member Functions | |
void | resolve () |
Private Attributes | |
std::string | id_ |
std::string | file_path_ |
std::string | title_ |
int | ms_before_ |
int | ms_after_ |
bool | once_ |
bool | append_ |
bool | immediate_ |
bool | shuffle_ |
Internal representation of music tracks.
Definition at line 28 of file sound_music_track.hpp.
sound::music_track::music_track | ( | ) |
Definition at line 33 of file sound_music_track.cpp.
sound::music_track::music_track | ( | const config & | node | ) |
Definition at line 45 of file sound_music_track.cpp.
References resolve().
sound::music_track::music_track | ( | const std::string & | v_name | ) |
Definition at line 59 of file sound_music_track.cpp.
References resolve().
|
inline |
Definition at line 38 of file sound_music_track.hpp.
References append_.
Referenced by sound::play_music_config().
|
inline |
Definition at line 45 of file sound_music_track.hpp.
References file_path_.
Referenced by editor::editor_controller::init_music(), operator!=(), operator==(), and sound::play_music_config().
|
inline |
Definition at line 46 of file sound_music_track.hpp.
References id_.
Referenced by editor::map_context::add_to_playlist(), editor::editor_controller::init_music(), and sound::play_music_config().
|
inline |
Definition at line 39 of file sound_music_track.hpp.
References immediate_.
Referenced by sound::play_music_config().
|
inline |
Definition at line 43 of file sound_music_track.hpp.
References ms_after_.
|
inline |
Definition at line 42 of file sound_music_track.hpp.
References ms_before_.
|
inline |
Definition at line 41 of file sound_music_track.hpp.
References once_.
Referenced by sound::play_music_config().
|
private |
Definition at line 73 of file sound_music_track.cpp.
References file_path_, filesystem::get_binary_file_location(), i, id_, LOG_AUDIO, utils::split(), and title_.
Referenced by music_track().
|
inline |
Definition at line 49 of file sound_music_track.hpp.
References once_.
|
inline |
Definition at line 40 of file sound_music_track.hpp.
References shuffle_.
|
inline |
Definition at line 47 of file sound_music_track.hpp.
References title_.
|
inline |
Definition at line 36 of file sound_music_track.hpp.
References file_path_.
Referenced by sound::play_music_config().
Definition at line 130 of file sound_music_track.cpp.
References config::add_child(), id_, ms_after_, ms_before_, and shuffle_.
|
private |
Definition at line 61 of file sound_music_track.hpp.
Referenced by append().
|
private |
Definition at line 55 of file sound_music_track.hpp.
Referenced by file_path(), resolve(), and valid().
|
private |
Definition at line 54 of file sound_music_track.hpp.
|
private |
Definition at line 62 of file sound_music_track.hpp.
Referenced by immediate().
|
private |
Definition at line 58 of file sound_music_track.hpp.
Referenced by ms_after(), and write().
|
private |
Definition at line 58 of file sound_music_track.hpp.
Referenced by ms_before(), and write().
|
private |
Definition at line 60 of file sound_music_track.hpp.
Referenced by play_once(), and set_play_once().
|
private |
Definition at line 63 of file sound_music_track.hpp.
|
private |
Definition at line 56 of file sound_music_track.hpp.