Archived
1
0
This repository has been archived on 2024-10-17. You can view files and clone it, but cannot push or open issues or pull requests.
winamp/Src/playlist/PlaylistCounter.cpp

18 lines
387 B
C++
Raw Normal View History

2024-09-24 12:54:57 +00:00
#include "PlaylistCounter.h"
int PlaylistCounter::OnFile( const wchar_t *filename, const wchar_t *title, int lengthInMS, ifc_plentryinfo *info )
{
// TODO: recursive load?
++count;
if ( lengthInMS > 0 )
length += lengthInMS;
return LOAD_CONTINUE;
}
#define CBCLASS PlaylistCounter
START_DISPATCH;
CB( IFC_PLAYLISTLOADERCALLBACK_ONFILE_RET, OnFile )
END_DISPATCH;
#undef CBCLASS