DSPlayer Class Reference

#include <DSPlayer.h>

Collaboration diagram for DSPlayer:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 DSPlayer (void)
 ~DSPlayer (void)
bool loadFile (wstring inFileName)
bool loadFile (wstring inFileName, HWND inWindow, int inLeft, int inTop, int inWidth, int inHeight)
bool play ()
bool pause ()
bool stop ()
__int64 seek (__int64 inTime)
__int64 seekStart ()
__int64 queryPosition ()
bool isLoaded ()
__int64 fileSize ()
__int64 fileDuration ()
bool setMediaEventCallback (IMediaEventNotification *inMediaEventCallback)
IMediaEventNotificationgetMediaEventCallback ()
bool checkEvents ()
void releaseInterfaces ()

Protected Member Functions

bool isFileAnnodex (wstring inFilename)
wstring toWStr (string inString)

Protected Attributes

IGraphBuilder * mGraphBuilder
IMediaControl * mMediaControl
IMediaSeeking * mMediaSeeking
IMediaEvent * mMediaEvent
ICMMLAppControl * mCMMLAppControl
ICMMLCallbacksmCMMLCallback
IMediaEventNotificationmMediaEventNotify
HANDLE mEventHandle
bool mIsLoaded
GUID Y_IID_ICMMLAppControl
fstream debugLog

Constructor & Destructor Documentation

DSPlayer::DSPlayer void   ) 
 

Definition at line 38 of file DSPlayer.cpp.

References debugLog, and Y_IID_ICMMLAppControl.

DSPlayer::~DSPlayer void   ) 
 

Definition at line 100 of file DSPlayer.cpp.

References debugLog, and releaseInterfaces().

Here is the call graph for this function:


Member Function Documentation

bool DSPlayer::checkEvents  ) 
 

Definition at line 75 of file DSPlayer.cpp.

References debugLog, IMediaEventNotification::eventNotification(), mEventHandle, mMediaEvent, and mMediaEventNotify.

Here is the call graph for this function:

__int64 DSPlayer::fileDuration  ) 
 

Definition at line 521 of file DSPlayer.cpp.

References mIsLoaded, and mMediaSeeking.

__int64 DSPlayer::fileSize  ) 
 

Definition at line 518 of file DSPlayer.cpp.

IMediaEventNotification * DSPlayer::getMediaEventCallback  ) 
 

Definition at line 552 of file DSPlayer.cpp.

bool DSPlayer::isFileAnnodex wstring  inFilename  )  [protected]
 

Definition at line 536 of file DSPlayer.cpp.

Referenced by loadFile().

bool DSPlayer::isLoaded  ) 
 

Definition at line 450 of file DSPlayer.cpp.

bool DSPlayer::loadFile wstring  inFileName,
HWND  inWindow,
int  inLeft,
int  inTop,
int  inWidth,
int  inHeight
 

Definition at line 167 of file DSPlayer.cpp.

References debugLog, inFileName, isFileAnnodex(), mCMMLAppControl, mCMMLCallback, mEventHandle, mGraphBuilder, mIsLoaded, mMediaControl, mMediaEvent, mMediaSeeking, releaseInterfaces(), and Y_IID_ICMMLAppControl.

Here is the call graph for this function:

bool DSPlayer::loadFile wstring  inFileName  ) 
 

Definition at line 317 of file DSPlayer.cpp.

References debugLog, inFileName, isFileAnnodex(), mCMMLAppControl, mCMMLCallback, mEventHandle, mGraphBuilder, mIsLoaded, mMediaControl, mMediaEvent, mMediaSeeking, releaseInterfaces(), and Y_IID_ICMMLAppControl.

Referenced by CControlDialog::setBrowser().

Here is the call graph for this function:

bool DSPlayer::pause  ) 
 

Definition at line 466 of file DSPlayer.cpp.

References mMediaControl.

Referenced by CControlDialog::OnBnClickedButton2().

bool DSPlayer::play  ) 
 

Definition at line 453 of file DSPlayer.cpp.

References mMediaControl.

Referenced by CControlDialog::setBrowser().

__int64 DSPlayer::queryPosition  ) 
 

Definition at line 514 of file DSPlayer.cpp.

void DSPlayer::releaseInterfaces  ) 
 

Definition at line 108 of file DSPlayer.cpp.

References debugLog, mCMMLAppControl, mGraphBuilder, mMediaControl, mMediaEvent, and mMediaSeeking.

Referenced by loadFile(), and ~DSPlayer().

__int64 DSPlayer::seek __int64  inTime  ) 
 

Definition at line 492 of file DSPlayer.cpp.

References mIsLoaded, and mMediaSeeking.

__int64 DSPlayer::seekStart  ) 
 

Definition at line 510 of file DSPlayer.cpp.

bool DSPlayer::setMediaEventCallback IMediaEventNotification inMediaEventCallback  ) 
 

Definition at line 548 of file DSPlayer.cpp.

References mMediaEventNotify.

bool DSPlayer::stop  ) 
 

Definition at line 479 of file DSPlayer.cpp.

References mMediaControl.

wstring DSPlayer::toWStr string  inString  )  [protected]
 

Definition at line 155 of file DSPlayer.cpp.


Member Data Documentation

fstream DSPlayer::debugLog [protected]
 

Definition at line 78 of file DSPlayer.h.

Referenced by checkEvents(), DSPlayer(), loadFile(), releaseInterfaces(), and ~DSPlayer().

ICMMLAppControl* DSPlayer::mCMMLAppControl [protected]
 

Definition at line 66 of file DSPlayer.h.

Referenced by loadFile(), and releaseInterfaces().

ICMMLCallbacks* DSPlayer::mCMMLCallback [protected]
 

Definition at line 67 of file DSPlayer.h.

Referenced by loadFile().

HANDLE DSPlayer::mEventHandle [protected]
 

Definition at line 70 of file DSPlayer.h.

Referenced by checkEvents(), and loadFile().

IGraphBuilder* DSPlayer::mGraphBuilder [protected]
 

Definition at line 62 of file DSPlayer.h.

Referenced by loadFile(), and releaseInterfaces().

bool DSPlayer::mIsLoaded [protected]
 

Definition at line 72 of file DSPlayer.h.

Referenced by fileDuration(), loadFile(), and seek().

IMediaControl* DSPlayer::mMediaControl [protected]
 

Definition at line 63 of file DSPlayer.h.

Referenced by loadFile(), pause(), play(), releaseInterfaces(), and stop().

IMediaEvent* DSPlayer::mMediaEvent [protected]
 

Definition at line 65 of file DSPlayer.h.

Referenced by checkEvents(), loadFile(), and releaseInterfaces().

IMediaEventNotification* DSPlayer::mMediaEventNotify [protected]
 

Definition at line 68 of file DSPlayer.h.

Referenced by checkEvents(), and setMediaEventCallback().

IMediaSeeking* DSPlayer::mMediaSeeking [protected]
 

Definition at line 64 of file DSPlayer.h.

Referenced by fileDuration(), loadFile(), releaseInterfaces(), and seek().

GUID DSPlayer::Y_IID_ICMMLAppControl [protected]
 

Definition at line 77 of file DSPlayer.h.

Referenced by DSPlayer(), and loadFile().


The documentation for this class was generated from the following files:
Generated on Tue Feb 15 15:02:54 2005 for oggdsf by  doxygen 1.3.9