Skip to content

Commit ef7a2ce

Browse files
author
Nicolas Gramlich
committed
Fixed a bug in changing the volume of a Sound. (Thx to blissoft.)
1 parent 25eb9c6 commit ef7a2ce

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

AndroidManifest.xml

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
android:versionCode="1"
55
android:versionName="1.0">
66

7-
<uses-sdk android:minSdkVersion="4"/>
8-
7+
<uses-sdk android:minSdkVersion="8" android:targetSdkVersion="8"/>
8+
99
<application android:debuggable="true"/>
1010
</manifest>

src/org/andengine/audio/sound/Sound.java

-2
Original file line numberDiff line numberDiff line change
@@ -149,8 +149,6 @@ public void setVolume(final float pLeftVolume, final float pRightVolume) throws
149149

150150
@Override
151151
public void onMasterVolumeChanged(final float pMasterVolume) throws SoundReleasedException {
152-
this.onMasterVolumeChanged(pMasterVolume);
153-
154152
this.setVolume(this.mLeftVolume, this.mRightVolume);
155153
}
156154

0 commit comments

Comments
 (0)