cocos2d-x  3.3
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
MciPlayer Class Reference

#include <MciPlayer.h>

Public Member Functions

 MciPlayer ()
 
 ~MciPlayer ()
 
void Close ()
 
void Open (const char *pFileName, UINT uId)
 Play sound file. More...
 
void Play (UINT uTimes=1)
 
void Pause ()
 Pause play. More...
 
void Resume ()
 Resume play. More...
 
void Stop ()
 Stop play. More...
 
void Rewind ()
 Replay. More...
 
bool IsPlaying ()
 Is Playing. More...
 
UINT GetSoundID ()
 Get playing sound's ID. More...
 

Friends

LRESULT WINAPI _SoundPlayProc (HWND hWnd, UINT Msg, WPARAM wParam, LPARAM lParam)
 

Constructor & Destructor Documentation

MciPlayer ( )
~MciPlayer ( )

Member Function Documentation

void Close ( )
UINT GetSoundID ( )

Get playing sound's ID.

Returns
Sound's ID
bool IsPlaying ( )

Is Playing.

void Open ( const char *  pFileName,
UINT  uId 
)

Play sound file.

Parameters
pFileNameSound's file name,include the file path.
nTimesPlay mode��default value is 1,paly once
void Pause ( )

Pause play.

void Play ( UINT  uTimes = 1)
void Resume ( )

Resume play.

void Rewind ( )

Replay.

void Stop ( )

Stop play.

Friends And Related Function Documentation

LRESULT WINAPI _SoundPlayProc ( HWND  hWnd,
UINT  Msg,
WPARAM  wParam,
LPARAM  lParam 
)
friend

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