OSDN Git Service

Fix issue 2141503: Keyclick sound doesn't honor volume settings.
authorEric Laurent <elaurent@google.com>
Tue, 29 Sep 2009 19:02:32 +0000 (12:02 -0700)
committerEric Laurent <elaurent@google.com>
Tue, 29 Sep 2009 19:02:32 +0000 (12:02 -0700)
Align sound effect volume on music volume.

src/com/android/inputmethod/pinyin/SoundManager.java

index 82be407..5953011 100644 (file)
@@ -26,7 +26,8 @@ public class SoundManager {
     private static SoundManager mInstance = null;
     private Context mContext;
     private AudioManager mAudioManager;
-    private final float FX_VOLUME = 1.0f;
+    // Align sound effect volume on music volume
+    private final float FX_VOLUME = -1.0f;
     private boolean mSilentMode;
 
     private SoundManager(Context context) {