Back to index

lightning-sunbird  0.9+nobinonly
Public Member Functions | Static Public Member Functions | Private Types | Private Attributes | Static Private Attributes
CWinMM Class Reference

List of all members.

Public Member Functions

 CWinMM (const char *aModuleName="WINMM.DLL")
 ~CWinMM ()
BOOL PlaySound (const char *aSoundFile, HMODULE aModule, DWORD aOptions)

Static Public Member Functions

static CWinMMGetModule ()
static BOOL IsInitialized ()

Private Types

typedef int(CALLBACKPlayPtr )(const char *, HMODULE, DWORD)

Private Attributes

PlayPtr mPlay

Static Private Attributes

static BOOL sIsInitialized = PR_FALSE

Detailed Description

Definition at line 59 of file nsSound.cpp.

Member Typedef Documentation

typedef int(CALLBACK * CWinMM::PlayPtr)(const char *, HMODULE, DWORD) [private]

Definition at line 60 of file nsSound.cpp.

Constructor & Destructor Documentation

CWinMM::CWinMM ( const char *  aModuleName = "WINMM.DLL") [inline]

Definition at line 70 of file nsSound.cpp.

    mPlay=(mInstance) ? (PlayPtr)GetProcAddress(mInstance,"PlaySound") : 0;
    sIsInitialized = PR_TRUE;
CWinMM::~CWinMM ( ) [inline]

Definition at line 76 of file nsSound.cpp.

Member Function Documentation

static CWinMM& CWinMM::GetModule ( ) [inline, static]

Definition at line 64 of file nsSound.cpp.

    static CWinMM gSharedWinMM;  //construct this only after you *really* need it.
    return gSharedWinMM;

Here is the caller graph for this function:

static BOOL CWinMM::IsInitialized ( ) [inline, static]

Definition at line 87 of file nsSound.cpp.

    return sIsInitialized;
BOOL CWinMM::PlaySound ( const char *  aSoundFile,
HMODULE  aModule,
DWORD  aOptions 
) [inline]

Definition at line 83 of file nsSound.cpp.

    return (mPlay) ? mPlay(aSoundFile, aModule, aOptions) : FALSE;

Here is the caller graph for this function:

Member Data Documentation

Definition at line 92 of file nsSound.cpp.

Definition at line 93 of file nsSound.cpp.

BOOL CWinMM::sIsInitialized = PR_FALSE [static, private]

Definition at line 94 of file nsSound.cpp.

The documentation for this class was generated from the following file: