I'm having problems with addition of new file to the playlist. Here's my code:
CODE
void someFunction(char *fileName) {
static_api_ptr_t<playlist_manager> plm;
playable_location_impl loc;
loc.set_path(fileName);
metadb_handle_ptr locHandle;
static_api_ptr_t<metadb>()->handle_create(locHandle, loc);
pfc::list_t<metadb_handle_ptr> list;
list.add_items(list);
plm->activeplaylist_add_items(list, bit_array_true());
}
Last line of the code doesn't change anything in the playlist. What does p_selection parameter mean in function activeplaylist_add_items after all?
Thanks.
