|
|
@ -15,6 +15,7 @@ import android.widget.ImageView; |
|
|
|
import android.widget.TextView; |
|
|
|
import android.widget.TextView; |
|
|
|
import com.jme3.audio.AudioRenderer; |
|
|
|
import com.jme3.audio.AudioRenderer; |
|
|
|
import com.jme3.audio.android.AndroidAudioRenderer; |
|
|
|
import com.jme3.audio.android.AndroidAudioRenderer; |
|
|
|
|
|
|
|
import com.jme3.audio.android.AndroidOpenALSoftAudioRenderer; |
|
|
|
import com.jme3.input.JoyInput; |
|
|
|
import com.jme3.input.JoyInput; |
|
|
|
import com.jme3.input.TouchInput; |
|
|
|
import com.jme3.input.TouchInput; |
|
|
|
import com.jme3.input.android.AndroidSensorJoyInput; |
|
|
|
import com.jme3.input.android.AndroidSensorJoyInput; |
|
|
@ -486,6 +487,10 @@ public class AndroidHarness extends Activity implements TouchListener, DialogInt |
|
|
|
AndroidAudioRenderer renderer = (AndroidAudioRenderer) result; |
|
|
|
AndroidAudioRenderer renderer = (AndroidAudioRenderer) result; |
|
|
|
renderer.resumeAll(); |
|
|
|
renderer.resumeAll(); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
if (result instanceof AndroidOpenALSoftAudioRenderer) { |
|
|
|
|
|
|
|
AndroidOpenALSoftAudioRenderer renderer = (AndroidOpenALSoftAudioRenderer) result; |
|
|
|
|
|
|
|
renderer.resumeAll(); |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
//resume the sensors (aka joysticks)
|
|
|
|
//resume the sensors (aka joysticks)
|
|
|
|
if (app.getContext() != null) { |
|
|
|
if (app.getContext() != null) { |
|
|
@ -525,6 +530,10 @@ public class AndroidHarness extends Activity implements TouchListener, DialogInt |
|
|
|
AndroidAudioRenderer renderer = (AndroidAudioRenderer) result; |
|
|
|
AndroidAudioRenderer renderer = (AndroidAudioRenderer) result; |
|
|
|
renderer.pauseAll(); |
|
|
|
renderer.pauseAll(); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
if (result instanceof AndroidOpenALSoftAudioRenderer) { |
|
|
|
|
|
|
|
AndroidOpenALSoftAudioRenderer renderer = (AndroidOpenALSoftAudioRenderer) result; |
|
|
|
|
|
|
|
renderer.pauseAll(); |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
//pause the sensors (aka joysticks)
|
|
|
|
//pause the sensors (aka joysticks)
|
|
|
|
if (app.getContext() != null) { |
|
|
|
if (app.getContext() != null) { |
|
|
|