Skip to main content

CocosDenshion.CCMusicPlayer


Class CCMusicPlayer

Namespace: CocosDenshion
Assembly: Cocos2D.dll, cocos2d_mono.Core.Android.dll, cocos2d_mono.Core.DesktopGL.dll, cocos2d-mono.Core.iOS.dll, cocos2d_mono.Core.Linux.dll, cocos2d_mono.Core.macOS.dll, cocos2d_mono.Windows.dll, cocos2d_mono.DesktopGL.dll, cocos2d-mono.iOS.dll, cocos2d_mono.Linux.dll, cocos2d_mono.macOS.dll

This interface controls the media player on the device. For Microsoft mobile devices that play music, e.g. Zune and phone, you must not intefere with the background music unless the user has allowed it.

public class CCMusicPlayer

Inheritance

objectCCMusicPlayer

Inherited Members

object.GetType(), object.MemberwiseClone(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()

Constructors

CCMusicPlayer()

public CCMusicPlayer()

CCMusicPlayer()

public CCMusicPlayer()

CCMusicPlayer()

public CCMusicPlayer()

CCMusicPlayer()

public CCMusicPlayer()

CCMusicPlayer()

public CCMusicPlayer()

CCMusicPlayer()

public CCMusicPlayer()

CCMusicPlayer()

public CCMusicPlayer()

CCMusicPlayer()

public CCMusicPlayer()

CCMusicPlayer()

public CCMusicPlayer()

CCMusicPlayer()

public CCMusicPlayer()

CCMusicPlayer()

public CCMusicPlayer()

CCMusicPlayer()

public CCMusicPlayer()

Fields

s_mciError

public static ulong s_mciError

Field Value

ulong

s_mciError

public static ulong s_mciError

Field Value

ulong

s_mciError

public static ulong s_mciError

Field Value

ulong

s_mciError

public static ulong s_mciError

Field Value

ulong

s_mciError

public static ulong s_mciError

Field Value

ulong

s_mciError

public static ulong s_mciError

Field Value

ulong

s_mciError

public static ulong s_mciError

Field Value

ulong

s_mciError

public static ulong s_mciError

Field Value

ulong

s_mciError

public static ulong s_mciError

Field Value

ulong

s_mciError

public static ulong s_mciError

Field Value

ulong

s_mciError

public static ulong s_mciError

Field Value

ulong

s_mciError

public static ulong s_mciError

Field Value

ulong

Properties

SoundID

public int SoundID { get; }

Property Value

int

SoundID

public int SoundID { get; }

Property Value

int

SoundID

public int SoundID { get; }

Property Value

int

SoundID

public int SoundID { get; }

Property Value

int

SoundID

public int SoundID { get; }

Property Value

int

SoundID

public int SoundID { get; }

Property Value

int

SoundID

public int SoundID { get; }

Property Value

int

SoundID

public int SoundID { get; }

Property Value

int

SoundID

public int SoundID { get; }

Property Value

int

SoundID

public int SoundID { get; }

Property Value

int

SoundID

public int SoundID { get; }

Property Value

int

SoundID

public int SoundID { get; }

Property Value

int

Volume

public float Volume { get; set; }

Property Value

float

Volume

public float Volume { get; set; }

Property Value

float

Volume

public float Volume { get; set; }

Property Value

float

Volume

public float Volume { get; set; }

Property Value

float

Volume

public float Volume { get; set; }

Property Value

float

Volume

public float Volume { get; set; }

Property Value

float

Volume

public float Volume { get; set; }

Property Value

float

Volume

public float Volume { get; set; }

Property Value

float

Volume

public float Volume { get; set; }

Property Value

float

Volume

public float Volume { get; set; }

Property Value

float

Volume

public float Volume { get; set; }

Property Value

float

Volume

public float Volume { get; set; }

Property Value

float

Methods

Close()

public void Close()

Close()

public void Close()

Close()

public void Close()

Close()

public void Close()

Close()

public void Close()

Close()

public void Close()

Close()

public void Close()

Close()

public void Close()

Close()

public void Close()

Close()

public void Close()

Close()

public void Close()

Close()

public void Close()

~CCMusicPlayer()

protected ~CCMusicPlayer()

~CCMusicPlayer()

protected ~CCMusicPlayer()

~CCMusicPlayer()

protected ~CCMusicPlayer()

~CCMusicPlayer()

protected ~CCMusicPlayer()

~CCMusicPlayer()

protected ~CCMusicPlayer()

~CCMusicPlayer()

protected ~CCMusicPlayer()

~CCMusicPlayer()

protected ~CCMusicPlayer()

~CCMusicPlayer()

protected ~CCMusicPlayer()

~CCMusicPlayer()

protected ~CCMusicPlayer()

~CCMusicPlayer()

protected ~CCMusicPlayer()

~CCMusicPlayer()

protected ~CCMusicPlayer()

~CCMusicPlayer()

protected ~CCMusicPlayer()

IsPlaying()

Returns true if any song is playing in the media player, even if it is not one of the songs in the game.

public bool IsPlaying()

Returns

bool

IsPlaying()

Returns true if any song is playing in the media player, even if it is not one of the songs in the game.

public bool IsPlaying()

Returns

bool

IsPlaying()

public bool IsPlaying()

Returns

bool

IsPlaying()

public bool IsPlaying()

Returns

bool

IsPlaying()

public bool IsPlaying()

Returns

bool

IsPlaying()

public bool IsPlaying()

Returns

bool

IsPlaying()

public bool IsPlaying()

Returns

bool

IsPlaying()

public bool IsPlaying()

Returns

bool

IsPlaying()

public bool IsPlaying()

Returns

bool

IsPlaying()

public bool IsPlaying()

Returns

bool

IsPlaying()

public bool IsPlaying()

Returns

bool

IsPlaying()

public bool IsPlaying()

Returns

bool

IsPlayingMySong()

Returns true if one of the game songs is playing.

public bool IsPlayingMySong()

Returns

bool

IsPlayingMySong()

Returns true if one of the game songs is playing.

public bool IsPlayingMySong()

Returns

bool

IsPlayingMySong()

public bool IsPlayingMySong()

Returns

bool

IsPlayingMySong()

public bool IsPlayingMySong()

Returns

bool

IsPlayingMySong()

public bool IsPlayingMySong()

Returns

bool

IsPlayingMySong()

public bool IsPlayingMySong()

Returns

bool

IsPlayingMySong()

public bool IsPlayingMySong()

Returns

bool

IsPlayingMySong()

public bool IsPlayingMySong()

Returns

bool

IsPlayingMySong()

public bool IsPlayingMySong()

Returns

bool

IsPlayingMySong()

public bool IsPlayingMySong()

Returns

bool

IsPlayingMySong()

public bool IsPlayingMySong()

Returns

bool

IsPlayingMySong()

public bool IsPlayingMySong()

Returns

bool

Open(string, int)

public void Open(string pFileName, int uId)

Parameters

pFileName string

uId int

Open(string, int)

public void Open(string pFileName, int uId)

Parameters

pFileName string

uId int

Open(string, int)

public void Open(string pFileName, int uId)

Parameters

pFileName string

uId int

Open(string, int)

public void Open(string pFileName, int uId)

Parameters

pFileName string

uId int

Open(string, int)

public void Open(string pFileName, int uId)

Parameters

pFileName string

uId int

Open(string, int)

public void Open(string pFileName, int uId)

Parameters

pFileName string

uId int

Open(string, int)

public void Open(string pFileName, int uId)

Parameters

pFileName string

uId int

Open(string, int)

public void Open(string pFileName, int uId)

Parameters

pFileName string

uId int

Open(string, int)

public void Open(string pFileName, int uId)

Parameters

pFileName string

uId int

Open(string, int)

public void Open(string pFileName, int uId)

Parameters

pFileName string

uId int

Open(string, int)

public void Open(string pFileName, int uId)

Parameters

pFileName string

uId int

Open(string, int)

public void Open(string pFileName, int uId)

Parameters

pFileName string

uId int

Pause()

Pauses the current song being played.

public void Pause()

Pause()

Pauses the current song being played.

public void Pause()

Pause()

public void Pause()

Pause()

public void Pause()

Pause()

public void Pause()

Pause()

public void Pause()

Pause()

public void Pause()

Pause()

public void Pause()

Pause()

public void Pause()

Pause()

public void Pause()

Pause()

public void Pause()

Pause()

public void Pause()

Play(bool)

public void Play(bool bLoop)

Parameters

bLoop bool

Play()

public void Play()

Play(bool)

public void Play(bool bLoop)

Parameters

bLoop bool

Play()

public void Play()

Play(bool)

public void Play(bool bLoop)

Parameters

bLoop bool

Play()

public void Play()

Play(bool)

public void Play(bool bLoop)

Parameters

bLoop bool

Play()

public void Play()

Play(bool)

public void Play(bool bLoop)

Parameters

bLoop bool

Play()

public void Play()

Play(bool)

public void Play(bool bLoop)

Parameters

bLoop bool

Play()

public void Play()

Play(bool)

public void Play(bool bLoop)

Parameters

bLoop bool

Play()

public void Play()

Play(bool)

public void Play(bool bLoop)

Parameters

bLoop bool

Play()

public void Play()

Play(bool)

public void Play(bool bLoop)

Parameters

bLoop bool

Play()

public void Play()

Play(bool)

public void Play(bool bLoop)

Parameters

bLoop bool

Play()

public void Play()

Play(bool)

public void Play(bool bLoop)

Parameters

bLoop bool

Play()

public void Play()

Play(bool)

public void Play(bool bLoop)

Parameters

bLoop bool

Play()

public void Play()

RestoreMediaState()

public void RestoreMediaState()

RestoreMediaState()

public void RestoreMediaState()

RestoreMediaState()

public void RestoreMediaState()

RestoreMediaState()

public void RestoreMediaState()

RestoreMediaState()

public void RestoreMediaState()

RestoreMediaState()

public void RestoreMediaState()

RestoreMediaState()

public void RestoreMediaState()

RestoreMediaState()

public void RestoreMediaState()

RestoreMediaState()

public void RestoreMediaState()

RestoreMediaState()

public void RestoreMediaState()

RestoreMediaState()

public void RestoreMediaState()

RestoreMediaState()

public void RestoreMediaState()

Resume()

Resumes playback of the current song.

public void Resume()

Resume()

Resumes playback of the current song.

public void Resume()

Resume()

public void Resume()

Resume()

public void Resume()

Resume()

public void Resume()

Resume()

public void Resume()

Resume()

public void Resume()

Resume()

public void Resume()

Resume()

public void Resume()

Resume()

public void Resume()

Resume()

public void Resume()

Resume()

public void Resume()

Rewind()

resets the playback of the current song to its beginning.

public void Rewind()

Rewind()

resets the playback of the current song to its beginning.

public void Rewind()

Rewind()

public void Rewind()

Rewind()

public void Rewind()

Rewind()

public void Rewind()

Rewind()

public void Rewind()

Rewind()

public void Rewind()

Rewind()

public void Rewind()

Rewind()

public void Rewind()

Rewind()

public void Rewind()

Rewind()

public void Rewind()

Rewind()

public void Rewind()

SaveMediaState()

public void SaveMediaState()

SaveMediaState()

public void SaveMediaState()

SaveMediaState()

public void SaveMediaState()

SaveMediaState()

public void SaveMediaState()

SaveMediaState()

public void SaveMediaState()

SaveMediaState()

public void SaveMediaState()

SaveMediaState()

public void SaveMediaState()

SaveMediaState()

public void SaveMediaState()

SaveMediaState()

public void SaveMediaState()

SaveMediaState()

public void SaveMediaState()

SaveMediaState()

public void SaveMediaState()

SaveMediaState()

public void SaveMediaState()

Stop()

Stops playback of the current song and resets the playback position to zero.

public void Stop()

Stop()

Stops playback of the current song and resets the playback position to zero.

public void Stop()

Stop()

public void Stop()

Stop()

public void Stop()

Stop()

public void Stop()

Stop()

public void Stop()

Stop()

public void Stop()

Stop()

public void Stop()

Stop()

public void Stop()

Stop()

public void Stop()

Stop()

public void Stop()

Stop()

public void Stop()
  • Constructors
    • CCMusicPlayer()
    • CCMusicPlayer()
    • CCMusicPlayer()
    • CCMusicPlayer()
    • CCMusicPlayer()
    • CCMusicPlayer()
    • CCMusicPlayer()
    • CCMusicPlayer()
    • CCMusicPlayer()
    • CCMusicPlayer()
    • CCMusicPlayer()
    • CCMusicPlayer()
  • Fields
    • s_mciError
    • s_mciError
    • s_mciError
    • s_mciError
    • s_mciError
    • s_mciError
    • s_mciError
    • s_mciError
    • s_mciError
    • s_mciError
    • s_mciError
    • s_mciError
  • Properties
    • SoundID
    • SoundID
    • SoundID
    • SoundID
    • SoundID
    • SoundID
    • SoundID
    • SoundID
    • SoundID
    • SoundID
    • SoundID
    • SoundID
    • Volume
    • Volume
    • Volume
    • Volume
    • Volume
    • Volume
    • Volume
    • Volume
    • Volume
    • Volume
    • Volume
    • Volume
  • Methods
    • Close()
    • Close()
    • Close()
    • Close()
    • Close()
    • Close()
    • Close()
    • Close()
    • Close()
    • Close()
    • Close()
    • Close()
    • ~CCMusicPlayer()
    • ~CCMusicPlayer()
    • ~CCMusicPlayer()
    • ~CCMusicPlayer()
    • ~CCMusicPlayer()
    • ~CCMusicPlayer()
    • ~CCMusicPlayer()
    • ~CCMusicPlayer()
    • ~CCMusicPlayer()
    • ~CCMusicPlayer()
    • ~CCMusicPlayer()
    • ~CCMusicPlayer()
    • IsPlaying()
    • IsPlaying()
    • IsPlaying()
    • IsPlaying()
    • IsPlaying()
    • IsPlaying()
    • IsPlaying()
    • IsPlaying()
    • IsPlaying()
    • IsPlaying()
    • IsPlaying()
    • IsPlaying()
    • IsPlayingMySong()
    • IsPlayingMySong()
    • IsPlayingMySong()
    • IsPlayingMySong()
    • IsPlayingMySong()
    • IsPlayingMySong()
    • IsPlayingMySong()
    • IsPlayingMySong()
    • IsPlayingMySong()
    • IsPlayingMySong()
    • IsPlayingMySong()
    • IsPlayingMySong()
    • Open(string, int)
    • Open(string, int)
    • Open(string, int)
    • Open(string, int)
    • Open(string, int)
    • Open(string, int)
    • Open(string, int)
    • Open(string, int)
    • Open(string, int)
    • Open(string, int)
    • Open(string, int)
    • Open(string, int)
    • Pause()
    • Pause()
    • Pause()
    • Pause()
    • Pause()
    • Pause()
    • Pause()
    • Pause()
    • Pause()
    • Pause()
    • Pause()
    • Pause()
    • Play(bool)
    • Play()
    • Play(bool)
    • Play()
    • Play(bool)
    • Play()
    • Play(bool)
    • Play()
    • Play(bool)
    • Play()
    • Play(bool)
    • Play()
    • Play(bool)
    • Play()
    • Play(bool)
    • Play()
    • Play(bool)
    • Play()
    • Play(bool)
    • Play()
    • Play(bool)
    • Play()
    • Play(bool)
    • Play()
    • RestoreMediaState()
    • RestoreMediaState()
    • RestoreMediaState()
    • RestoreMediaState()
    • RestoreMediaState()
    • RestoreMediaState()
    • RestoreMediaState()
    • RestoreMediaState()
    • RestoreMediaState()
    • RestoreMediaState()
    • RestoreMediaState()
    • RestoreMediaState()
    • Resume()
    • Resume()
    • Resume()
    • Resume()
    • Resume()
    • Resume()
    • Resume()
    • Resume()
    • Resume()
    • Resume()
    • Resume()
    • Resume()
    • Rewind()
    • Rewind()
    • Rewind()
    • Rewind()
    • Rewind()
    • Rewind()
    • Rewind()
    • Rewind()
    • Rewind()
    • Rewind()
    • Rewind()
    • Rewind()
    • SaveMediaState()
    • SaveMediaState()
    • SaveMediaState()
    • SaveMediaState()
    • SaveMediaState()
    • SaveMediaState()
    • SaveMediaState()
    • SaveMediaState()
    • SaveMediaState()
    • SaveMediaState()
    • SaveMediaState()
    • SaveMediaState()
    • Stop()
    • Stop()
    • Stop()
    • Stop()
    • Stop()
    • Stop()
    • Stop()
    • Stop()
    • Stop()
    • Stop()
    • Stop()
    • Stop()