1
0

PlaylistCounter.cpp 387 B

123456789101112131415161718
  1. #include "PlaylistCounter.h"
  2. int PlaylistCounter::OnFile( const wchar_t *filename, const wchar_t *title, int lengthInMS, ifc_plentryinfo *info )
  3. {
  4. // TODO: recursive load?
  5. ++count;
  6. if ( lengthInMS > 0 )
  7. length += lengthInMS;
  8. return LOAD_CONTINUE;
  9. }
  10. #define CBCLASS PlaylistCounter
  11. START_DISPATCH;
  12. CB( IFC_PLAYLISTLOADERCALLBACK_ONFILE_RET, OnFile )
  13. END_DISPATCH;
  14. #undef CBCLASS