From 0e7470505fcf41dd0dbd852fb04a6cd5e2782a2c Mon Sep 17 00:00:00 2001 From: minggo Date: Wed, 10 Dec 2014 18:32:58 +0800 Subject: [PATCH] replace tab with 4 spaces --- .../java/src/org/cocos2dx/lib/Cocos2dxMusic.java | 12 ++++++------ .../java/src/org/cocos2dx/lib/Cocos2dxSound.java | 4 ++-- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/cocos/platform/android/java/src/org/cocos2dx/lib/Cocos2dxMusic.java b/cocos/platform/android/java/src/org/cocos2dx/lib/Cocos2dxMusic.java index 1614ffeb04..4e9bdf5405 100644 --- a/cocos/platform/android/java/src/org/cocos2dx/lib/Cocos2dxMusic.java +++ b/cocos/platform/android/java/src/org/cocos2dx/lib/Cocos2dxMusic.java @@ -137,10 +137,10 @@ public class Cocos2dxMusic { mBackgroundMediaPlayer.release(); mBackgroundMediaPlayer = createMediaplayer(mCurrentPath); - /** - * should set the state, if not, the following sequence will be error - * play -> pause -> stop -> resume - */ + /** + * should set the state, if not, the following sequence will be error + * play -> pause -> stop -> resume + */ this.mPaused = false; } } @@ -197,11 +197,11 @@ public class Cocos2dxMusic { public void setBackgroundVolume(float volume) { if (volume < 0.0f) { - volume = 0.0f; + volume = 0.0f; } if (volume > 1.0f) { - volume = 1.0f; + volume = 1.0f; } this.mLeftVolume = this.mRightVolume = volume; diff --git a/cocos/platform/android/java/src/org/cocos2dx/lib/Cocos2dxSound.java b/cocos/platform/android/java/src/org/cocos2dx/lib/Cocos2dxSound.java index 7a3ed66bac..9c08fe98ce 100644 --- a/cocos/platform/android/java/src/org/cocos2dx/lib/Cocos2dxSound.java +++ b/cocos/platform/android/java/src/org/cocos2dx/lib/Cocos2dxSound.java @@ -250,10 +250,10 @@ public class Cocos2dxSound { public void setEffectsVolume(float volume) { // volume should be in [0, 1.0] if (volume < 0) { - volume = 0; + volume = 0; } if (volume > 1) { - volume = 1; + volume = 1; } this.mLeftVolume = this.mRightVolume = volume;