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/mpc_player.h

    r254 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
     
    3232public:
    3333        mpc_player(In_Module * in_mod);
    34         mpc_player(char * fn, In_Module * in_mod);
     34        mpc_player(const char * fn, In_Module * in_mod);
    3535        ~mpc_player(void);
    3636
     37        int openFile(const char * fn);
    3738        int play(char *fn);
    3839        void stop(void);
    3940
    4041        void getFileInfo(char *title, int *length_in_ms);
    41         int getLength(void) {return (int)(si.samples * 1000 / si.sample_freq);}
     42        int getExtendedFileInfo(const char *data, char *dest, int destlen);
     43        int getLength(void) {return (int)(mpc_streaminfo_get_length(&si) * 1000);}
    4244        int getOutputTime(void) {return (int)(decode_pos_sample * 1000 / si.sample_freq);}
    4345
     
    7274        static DWORD WINAPI runThread(void * pThis);
    7375        int decodeFile(void);
    74         int openFile(char * fn);
    7576        void closeFile(void);
    7677
Note: See TracChangeset for help on using the changeset viewer.