Help - Search - Members - Calendar
Full Version: album art
Hydrogenaudio Forums > Hosted Forums > foobar2000 > Development - (fb2k)
adamh
hi, i have tried to obtain album art data from current media by this way:
CODE
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 ?

Yirkha
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.
adamh
thanks for your tip, you were right member function open must be called before query, thanks
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2008 Invision Power Services, Inc.