Help - Search - Members - Calendar
Full Version: How to update tag silent?
Hydrogenaudio Forums > Hosted Forums > foobar2000 > Development - (fb2k)
bluenet
While updatting tag will cause playing music pause 1~2 second and a progress window created.
I want to known how to disable this action just like 0.8 SDK, Thanks. huh.gif

My code:
CODE

file_info_impl info;
//Add field to object
static_api_ptr_t<metadb_io> mdbio;
mdbio->update_info(track, info, NULL, false);
foosion
The progress window cannot be disabled. Furthermore, if you update the tags on the currently playing file, it will have to be closed and re-opened.
bluenet
Is these any way to "Add to update queue"? What I mean is if file was busy then waitting for music stop, else update immediately. Is this feathure removed from 0.9 SDK?

These is another question: Function "bool wildcard_helper::test(const char * fn,const char * pattern,bool b_sep)" return difference result from Windows API - PathMatchSpec. PathMatchSpec("Track 1", "Track*") return true but wildcard_helper::test("Track 1", "Track*", false) return false.
I have modified code for compatible with PathMatchSpec:
CODE

static bool test_recur(const char * fn,const char * rm,bool b_sep)
{
    for(;;)
    {
        if ((b_sep && *rm==';') || *rm==0) return *fn==0;
        else if (*rm=='*')
        {
            rm++;
            if (0 == *rm || (b_sep && ';' == *rm)) return true; //if * at end of string
            do
            {
                if (test_recur(fn,rm,b_sep)) return true;
            } while(pfc::utf8_advance(fn));
            return false;
        }
        else if (*fn==0) return false;
        else if (*rm!='?' && char_lower(pfc::utf8_get_char(fn))!=char_lower(pfc::utf8_get_char(rm))) return false;
        
        fn = pfc::utf8_char_next(fn); rm = pfc::utf8_char_next(rm);
    }
}
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.