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.audio.*;
|
||||
import com.jme3.audio.AudioSource.Status;
|
||||
import com.jme3.audio.openal.ALAudioRenderer;
|
||||
import com.jme3.math.FastMath;
|
||||
import com.jme3.math.Vector3f;
|
||||
import java.io.IOException;
|
||||
@ -53,7 +54,11 @@ import java.util.logging.Logger;
|
||||
*
|
||||
* @author larynx
|
||||
* @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,
|
||||
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.
|
||||
* <p>
|
||||
* NOTE: Supports Android 2.2+ platforms. This is the current default for
|
||||
* Android platforms.
|
||||
* NOTE: Supports Android 2.2+ platforms.
|
||||
*
|
||||
* @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";
|
||||
|
||||
/**
|
||||
* Use the OpenAL Soft based renderer for Android audio capabilities.
|
||||
* <p>
|
||||
* This is the current default for Android platforms.
|
||||
* NOTE: Only to be used on Android 2.3+ platforms due to using OpenSL.
|
||||
*
|
||||
* @see AppSettings#setAudioRenderer(java.lang.String)
|
||||
|
Loading…
x
Reference in New Issue
Block a user