Ignore:
Timestamp:
12/23/06 17:07:21 (17 years ago)
Author:
r2d
Message:
  • removed file info bug
  • improved thread reactivity
File:
1 edited

Legend:

Unmodified
Added
Removed
  • winamp-musepack/trunk/winamp-musepack/mpc_player.h

    r186 r188  
    1111public:
    1212        mpc_player(In_Module * in_mod);
     13        mpc_player(char * fn, In_Module * in_mod);
    1314        ~mpc_player(void);
    1415
    1516        int play(char *fn);
    1617        void stop(void);
    17         void getFileInfo(char *filename, char *title, int *length_in_ms);
     18
     19        void getFileInfo(char *title, int *length_in_ms);
    1820        int getLength(void) {return si.samples * 1000 / si.sample_freq;}
    1921        int getOutputTime(void) {return decode_pos_sample * 1000 / si.sample_freq;}
    2022
     23        void setOutputTime(int time_in_ms);
     24
    2125        int paused;                             // are we paused?
    22         volatile int seek_offset; // if != -1, it is the point that the decode
    23                                                           // thread should seek to, in ms.
    2426
    2527private:
     
    3133
    3234        __int64 decode_pos_sample; // decoding position in samples;
     35        volatile int seek_offset; // if != -1, it is the point that the decode
     36                                                          // thread should seek to, in ms.
    3337        volatile int killDecodeThread;  // the kill switch for the decode thread
    3438
    3539        HANDLE thread_handle;   // the handle to the decode thread
     40        HANDLE wait_event;
    3641
    3742        In_Module * mod;
     
    4247        void closeFile(void);
    4348
     49        void init(In_Module * in_mod);
     50
    4451        void scaleSamples(short * buffer, int len);
    4552};
Note: See TracChangeset for help on using the changeset viewer.