mirror of https://github.com/axmolengine/axmol.git
replace tab with 4 spaces
This commit is contained in:
parent
77ed7a47e2
commit
0e7470505f
|
@ -137,10 +137,10 @@ public class Cocos2dxMusic {
|
||||||
mBackgroundMediaPlayer.release();
|
mBackgroundMediaPlayer.release();
|
||||||
mBackgroundMediaPlayer = createMediaplayer(mCurrentPath);
|
mBackgroundMediaPlayer = createMediaplayer(mCurrentPath);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* should set the state, if not, the following sequence will be error
|
* should set the state, if not, the following sequence will be error
|
||||||
* play -> pause -> stop -> resume
|
* play -> pause -> stop -> resume
|
||||||
*/
|
*/
|
||||||
this.mPaused = false;
|
this.mPaused = false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -197,11 +197,11 @@ public class Cocos2dxMusic {
|
||||||
|
|
||||||
public void setBackgroundVolume(float volume) {
|
public void setBackgroundVolume(float volume) {
|
||||||
if (volume < 0.0f) {
|
if (volume < 0.0f) {
|
||||||
volume = 0.0f;
|
volume = 0.0f;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (volume > 1.0f) {
|
if (volume > 1.0f) {
|
||||||
volume = 1.0f;
|
volume = 1.0f;
|
||||||
}
|
}
|
||||||
|
|
||||||
this.mLeftVolume = this.mRightVolume = volume;
|
this.mLeftVolume = this.mRightVolume = volume;
|
||||||
|
|
|
@ -250,10 +250,10 @@ public class Cocos2dxSound {
|
||||||
public void setEffectsVolume(float volume) {
|
public void setEffectsVolume(float volume) {
|
||||||
// volume should be in [0, 1.0]
|
// volume should be in [0, 1.0]
|
||||||
if (volume < 0) {
|
if (volume < 0) {
|
||||||
volume = 0;
|
volume = 0;
|
||||||
}
|
}
|
||||||
if (volume > 1) {
|
if (volume > 1) {
|
||||||
volume = 1;
|
volume = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
this.mLeftVolume = this.mRightVolume = volume;
|
this.mLeftVolume = this.mRightVolume = volume;
|
||||||
|
|
Loading…
Reference in New Issue