v0.9.4: moved to async android audio, added in gdx 1.9.12
This commit is contained in:
parent
804f0bda2e
commit
4df6e1ec0d
|
@ -21,6 +21,7 @@
|
|||
|
||||
package com.shatteredpixel.shatteredpixeldungeon.android;
|
||||
|
||||
import android.content.Context;
|
||||
import android.content.pm.ActivityInfo;
|
||||
import android.content.pm.PackageManager;
|
||||
import android.os.Build;
|
||||
|
@ -30,6 +31,8 @@ import android.view.ViewConfiguration;
|
|||
import com.badlogic.gdx.Files;
|
||||
import com.badlogic.gdx.backends.android.AndroidApplication;
|
||||
import com.badlogic.gdx.backends.android.AndroidApplicationConfiguration;
|
||||
import com.badlogic.gdx.backends.android.AndroidAudio;
|
||||
import com.badlogic.gdx.backends.android.AsynchronousAndroidAudio;
|
||||
import com.shatteredpixel.shatteredpixeldungeon.SPDSettings;
|
||||
import com.shatteredpixel.shatteredpixeldungeon.ShatteredPixelDungeon;
|
||||
import com.shatteredpixel.shatteredpixeldungeon.services.news.News;
|
||||
|
@ -115,6 +118,11 @@ public class AndroidGame extends AndroidApplication {
|
|||
|
||||
}
|
||||
|
||||
@Override
|
||||
public AndroidAudio createAudio(Context context, AndroidApplicationConfiguration config) {
|
||||
return new AsynchronousAndroidAudio(context, config);
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void onResume() {
|
||||
//prevents weird rare cases where the app is running twice
|
||||
|
|
Loading…
Reference in New Issue
Block a user