cocos2d-x  3.3rc0
 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 ()
 MciPlayer ()
 ~MciPlayer ()
 ~MciPlayer ()
 ~MciPlayer ()
void Close ()
var Close ()
local Close ()
void Open (const char *pFileName, UINT uId)
 Play sound file. More...
 
var Open ( var pFileName, var uId)
 Play sound file. More...
 
local Open ( local pFileName, local uId)
 Play sound file. More...
 
void Play (UINT uTimes=1)
var Play ( var 1)
local Play ( local 1)
void Pause ()
 Pause play. More...
 
void Resume ()
 Resume play. More...
 
var Resume ()
 Resume play. More...
 
local Resume ()
 Resume play. More...
 
void Stop ()
 Stop play. More...
 
void Rewind ()
 Replay. More...
 
var Rewind ()
 Replay. More...
 
local Rewind ()
 Replay. More...
 
bool IsPlaying ()
 Is Playing. More...
 
var IsPlaying ()
 Is Playing. More...
 
local IsPlaying ()
 Is Playing. More...
 
UINT GetSoundID ()
 Get playing sound's ID. More...
 
var GetSoundID ()
 Get playing sound's ID. More...
 
local GetSoundID ()
 Get playing sound's ID. More...
 

Friends

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

Constructor & Destructor Documentation

MciPlayer ( )
var MciPlayer ( )
local MciPlayer ( )
~MciPlayer ( )
var ~MciPlayer ( )
local ~MciPlayer ( )

Member Function Documentation

void Close ( )
var Close ( )
local Close ( )
UINT GetSoundID ( )

Get playing sound's ID.

Returns
Sound's ID
var GetSoundID ( )

Get playing sound's ID.

Returns
Sound's ID
local GetSoundID ( )

Get playing sound's ID.

Returns
Sound's ID
bool IsPlaying ( )

Is Playing.

var IsPlaying ( )

Is Playing.

local 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
var Open ( var  pFileName,
var  uId 
)

Play sound file.

Parameters
pFileNameSound's file name,include the file path.
nTimesPlay modeŁ¬default value is 1,paly once
local Open ( local  pFileName,
local  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.

var Pause ( )

Pause play.

local Pause ( )

Pause play.

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

Resume play.

var Resume ( )

Resume play.

local Resume ( )

Resume play.

void Rewind ( )

Replay.

var Rewind ( )

Replay.

local Rewind ( )

Replay.

void Stop ( )

Stop play.

var Stop ( )

Stop play.

local Stop ( )

Stop play.

Friends And Related Function Documentation

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

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