The old Android MediaPlayer based audio renderer is now deprecated
This commit is contained in:
parent
6cad69e067
commit
be1f219f29
@ -41,6 +41,7 @@ import android.media.SoundPool;
|
|||||||
import com.jme3.asset.AssetKey;
|
import com.jme3.asset.AssetKey;
|
||||||
import com.jme3.audio.*;
|
import com.jme3.audio.*;
|
||||||
import com.jme3.audio.AudioSource.Status;
|
import com.jme3.audio.AudioSource.Status;
|
||||||
|
import com.jme3.audio.openal.ALAudioRenderer;
|
||||||
import com.jme3.math.FastMath;
|
import com.jme3.math.FastMath;
|
||||||
import com.jme3.math.Vector3f;
|
import com.jme3.math.Vector3f;
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
@ -53,7 +54,11 @@ import java.util.logging.Logger;
|
|||||||
*
|
*
|
||||||
* @author larynx
|
* @author larynx
|
||||||
* @author plan_rich
|
* @author plan_rich
|
||||||
|
*
|
||||||
|
* @deprecated No longer supported due to too many limitations.
|
||||||
|
* Please use the generic {@link ALAudioRenderer} instead.
|
||||||
*/
|
*/
|
||||||
|
@Deprecated
|
||||||
public class AndroidMediaPlayerAudioRenderer implements AudioRenderer,
|
public class AndroidMediaPlayerAudioRenderer implements AudioRenderer,
|
||||||
SoundPool.OnLoadCompleteListener, MediaPlayer.OnCompletionListener {
|
SoundPool.OnLoadCompleteListener, MediaPlayer.OnCompletionListener {
|
||||||
|
|
||||||
|
@ -90,16 +90,19 @@ public final class AppSettings extends HashMap<String, Object> {
|
|||||||
/**
|
/**
|
||||||
* Use the Android MediaPlayer / SoundPool based renderer for Android audio capabilities.
|
* Use the Android MediaPlayer / SoundPool based renderer for Android audio capabilities.
|
||||||
* <p>
|
* <p>
|
||||||
* NOTE: Supports Android 2.2+ platforms. This is the current default for
|
* NOTE: Supports Android 2.2+ platforms.
|
||||||
* Android platforms.
|
|
||||||
*
|
*
|
||||||
* @see AppSettings#setAudioRenderer(java.lang.String)
|
* @see AppSettings#setAudioRenderer(java.lang.String)
|
||||||
|
* @deprecated This audio renderer has too many limitations.
|
||||||
|
* use {@link #ANDROID_OPENAL_SOFT} instead.
|
||||||
*/
|
*/
|
||||||
|
@Deprecated
|
||||||
public static final String ANDROID_MEDIAPLAYER = "MediaPlayer";
|
public static final String ANDROID_MEDIAPLAYER = "MediaPlayer";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Use the OpenAL Soft based renderer for Android audio capabilities.
|
* Use the OpenAL Soft based renderer for Android audio capabilities.
|
||||||
* <p>
|
* <p>
|
||||||
|
* This is the current default for Android platforms.
|
||||||
* NOTE: Only to be used on Android 2.3+ platforms due to using OpenSL.
|
* NOTE: Only to be used on Android 2.3+ platforms due to using OpenSL.
|
||||||
*
|
*
|
||||||
* @see AppSettings#setAudioRenderer(java.lang.String)
|
* @see AppSettings#setAudioRenderer(java.lang.String)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user