mirror of
https://github.com/WinampDesktop/winamp.git
synced 2024-11-15 02:14:54 -05:00
18 lines
No EOL
387 B
C++
18 lines
No EOL
387 B
C++
#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 |