mirror of
https://github.com/libretro/RetroArch
synced 2025-01-30 12:32:52 +00:00
(Android frontend) Cleanup
This commit is contained in:
parent
c90a3f5a89
commit
08201cf55b
@ -177,18 +177,8 @@ public final class UserPreferences
|
||||
{
|
||||
int buffersize = getLowLatencyBufferSize(ctx);
|
||||
|
||||
boolean lowLatency = hasLowLatencyAudio(ctx);
|
||||
Log.i(TAG, "Audio is low latency: " + (lowLatency ? "yes" : "no"));
|
||||
|
||||
config.setInt("audio_latency", 64);
|
||||
if (lowLatency)
|
||||
{
|
||||
config.setInt("audio_block_frames", buffersize);
|
||||
}
|
||||
else
|
||||
{
|
||||
config.setInt("audio_block_frames", 0);
|
||||
}
|
||||
config.setInt("audio_block_frames", buffersize);
|
||||
}
|
||||
else
|
||||
{
|
||||
@ -462,20 +452,6 @@ public final class UserPreferences
|
||||
return buffersize;
|
||||
}
|
||||
|
||||
/**
|
||||
* Checks whether or not a device supports low-latency audio.
|
||||
*
|
||||
* @param ctx the current {@link Context}.
|
||||
*
|
||||
* @return true if the device supports low-latency audio; false otherwise.
|
||||
*/
|
||||
@TargetApi(17)
|
||||
private static boolean hasLowLatencyAudio(Context ctx)
|
||||
{
|
||||
//PackageManager pm = ctx.getPackageManager();
|
||||
return true;//pm.hasSystemFeature(PackageManager.FEATURE_AUDIO_LOW_LATENCY);
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the optimal audio sampling rate.
|
||||
* <p>
|
||||
|
Loading…
x
Reference in New Issue
Block a user