Skip to main content

Notice

Please note that most of the software linked on this forum is likely to be safe to use. If you are unsure, feel free to ask in the relevant topics, or send a private message to an administrator or moderator. To help curb the problems of false positives, or in the event that you do find actual malware, you can contribute through the article linked here.
Topic: album art (Read 4497 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

album art

hi, i have tried to obtain album art data from current media by this way:
Code: [Select]
album_art_manager_instance_ptr aami = 
    static_api_ptr_t<album_art_manager>()->instantiate();
try
{
    foobar2000_io::abort_callback_impl abort;
    album_art_data_ptr pdata =    
        aami->query(album_art_ids::cover_front, abort);    
}
catch (...) {}
   
but always gets an exception exception_album_art_not_found, i have tried all album_art_ids but always same result. Any ides ?

album art

Reply #1
Maybe you'd have to call the aami->open() method first, with path to the file you want to get the album art from. I guess there is no automatic fallback to "currently playing item" or anything like that.
Full-quoting makes you scroll past the same junk over and over.

 

album art

Reply #2
thanks for your tip, you were right member function open must be called before query, thanks