Changeset 188 for winamp-musepack/trunk/winamp-musepack/mpc_player.h
- Timestamp:
- 12/23/06 17:07:21 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
winamp-musepack/trunk/winamp-musepack/mpc_player.h
r186 r188 11 11 public: 12 12 mpc_player(In_Module * in_mod); 13 mpc_player(char * fn, In_Module * in_mod); 13 14 ~mpc_player(void); 14 15 15 16 int play(char *fn); 16 17 void stop(void); 17 void getFileInfo(char *filename, char *title, int *length_in_ms); 18 19 void getFileInfo(char *title, int *length_in_ms); 18 20 int getLength(void) {return si.samples * 1000 / si.sample_freq;} 19 21 int getOutputTime(void) {return decode_pos_sample * 1000 / si.sample_freq;} 20 22 23 void setOutputTime(int time_in_ms); 24 21 25 int paused; // are we paused? 22 volatile int seek_offset; // if != -1, it is the point that the decode23 // thread should seek to, in ms.24 26 25 27 private: … … 31 33 32 34 __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. 33 37 volatile int killDecodeThread; // the kill switch for the decode thread 34 38 35 39 HANDLE thread_handle; // the handle to the decode thread 40 HANDLE wait_event; 36 41 37 42 In_Module * mod; … … 42 47 void closeFile(void); 43 48 49 void init(In_Module * in_mod); 50 44 51 void scaleSamples(short * buffer, int len); 45 52 };
Note: See TracChangeset
for help on using the changeset viewer.