blob: 413c133b032ff5204b2c8788abb8b70c75b9c70a (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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
|