Ignore:
Timestamp:
05/11/07 14:08:16 (17 years ago)
Author:
r2d
Message:

Added winamp extended info (replay gain and title formating)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • winamp-musepack/trunk/in_mpc.cpp

    r248 r322  
    11/*
    2         Copyright (C) 2006 Nicolas BOTTI <rududu at laposte.net>
     2        Copyright (C) 2006-2007 Nicolas BOTTI <rududu at laposte.net>
    33        This file is part of the Musepack Winamp plugin.
    44
     
    4848
    4949mpc_player * player;
     50mpc_player * player_ext;
    5051
    5152// module definition.
     
    9394void config(HWND hwndParent)
    9495{
    95         MessageBoxA(hwndParent, "No configuration yet", "Configuration", MB_OK);
     96        MessageBoxA(hwndParent, "Do you really need a configuration ?", "Musepack Configuration", MB_OK);
    9697}
    9798void about(HWND hwndParent)
    9899{
    99         MessageBoxA(hwndParent,"Musepack plugin for winamp\nAll bugs © Nicolas BOTTI", "Uh ?", MB_OK);
     100        if (MessageBoxA(hwndParent,"Musepack plugin for winamp\nAll bugs © Nicolas BOTTI\n\nDo you want to go to http://www.musepack.net ?", "Uh ?", MB_YESNO | MB_ICONQUESTION | MB_DEFBUTTON2) == IDYES)
     101                ShellExecute( hwndParent, "open", "http://www.musepack.net", NULL, NULL, SW_NORMAL);
    100102}
    101103
     
    225227}
    226228
    227 }
     229__declspec( dllexport ) int winampGetExtendedFileInfo(const char *fn, const char *data, char *dest, int destlen )
     230{
     231        if ( !fn || (fn && !fn[0]) ) return 0;
     232
     233        if (player_ext == 0)
     234                player_ext = new mpc_player(fn, 0);
     235        else
     236                player_ext->openFile(fn);
     237
     238        dest[0] = 0;
     239
     240        return player_ext->getExtendedFileInfo(data, dest, destlen);
     241}
     242
     243}
Note: See TracChangeset for help on using the changeset viewer.