Initial community commit
This commit is contained in:
parent
537bcbc862
commit
fc06254474
16440 changed files with 4239995 additions and 2 deletions
18
Src/playlist/PlaylistCounter.cpp
Normal file
18
Src/playlist/PlaylistCounter.cpp
Normal file
|
@ -0,0 +1,18 @@
|
|||
#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
|
Loading…
Add table
Add a link
Reference in a new issue