I'm writing my custom UI plugin, which is in early development stages. I've managed to display current playlist's items using titleformatting. However because UI is supposed to ease the interface I cannot only display the list. ;-) So I've added few (un)pretty buttons and added callbacks to start playing the music. But then I came across a problem - I cannot start any song. My first attempt was to call selected item from current playlist, which I tought could be done with:
CODE
static_api_ptr_t<playlist_manager> plm;
unsigned playlist = plm->get_active_playlist();
plm->playlist_execute_default_action(playlist, item);
unsigned playlist = plm->get_active_playlist();
plm->playlist_execute_default_action(playlist, item);
item is also an unsigned sent from my playlist widget. The code ran, but didn't yield any results. I've checked the numbers and didn't found anything suspicious about them (playlist = 0; item = 0-19). The same thing happens when I try to standard_commands::main_play_or_pause(); or anything like it. All I get is that something threw an exception:
CODE
First-chance exception at 0x7c812a7b in foobar2000.exe: Microsoft C++ exception: foobar2000_io::exception_aborted at memory location 0x116df614..
or
CODE
First-chance exception at 0x7c812a7b in foobar2000.exe: Microsoft C++ exception: exception_tag_not_found at memory location 0x116ded2c..
Anyone got any idea what is going on?
Cheers.
