Skip to content

Commit b4e5181

Browse files
committed
HXSoundEngine: Fixed issue with sound looping not working; incorrect value of 1 was set when enabled.
1 parent e75461f commit b4e5181

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

hxaudio/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ android {
77
defaultConfig {
88
minSdkVersion 9
99
targetSdkVersion 26
10-
versionCode 16
11-
versionName "3.2.4"
10+
versionCode 17
11+
versionName "3.2.5"
1212
}
1313
buildTypes {
1414
release {

hxaudio/src/main/java/com/huhx0015/hxaudio/audio/HXSoundEngine.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ public void onLoadComplete(SoundPool soundPool, int sampleId, int status) {
160160
private synchronized void playSoundFx(int id, boolean isLoop, float volume) {
161161
if (soundEffectMap != null && !soundEffectMap.isEmpty()) {
162162
soundPool.play(id, volume, volume, SOUND_PRIORITY_LEVEL,
163-
isLoop ? 1 : 0, 1.0f);
163+
isLoop ? -1 : 0, 1.0f);
164164
}
165165
}
166166

0 commit comments

Comments
 (0)