libsaria: Added TRACK_LOADED callback
This is triggered whenever a new track is loaded.
This commit is contained in:
parent
66a3ca63e6
commit
9997e6ffa6
|
@ -5,6 +5,7 @@ enum callback_t {
|
|||
PLAY,
|
||||
PAUSE,
|
||||
VOLUME,
|
||||
TRACK_LOADED,
|
||||
IDLE_TASK_QUEUED,
|
||||
LIBRARY_REFRESH,
|
||||
};
|
||||
|
|
|
@ -55,6 +55,7 @@ namespace libsaria
|
|||
reset();
|
||||
cur_file = file;
|
||||
g_object_set(G_OBJECT(get_player()), "uri", uri.c_str(), NULL);
|
||||
trigger_callback(TRACK_LOADED);
|
||||
play();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue