Commit 6fee556e authored by Sylvain Berfini's avatar Sylvain Berfini 🎩

Increased default buffer size to 256 according to...

Increased default buffer size to 256 according to https://developer.android.com/ndk/guides/audio/output-latency.html
parent 80e33a4e
......@@ -68,7 +68,7 @@ public class MediastreamerAndroidContext {
boolean hasProFeature = mContext.getPackageManager().hasSystemFeature(PackageManager.FEATURE_AUDIO_PRO);
Log.i("[Device] hasLowLatencyFeature: " + hasLowLatencyFeature + ", hasProFeature: " + hasProFeature);
int bufferSize = 64;
int bufferSize = 256;
int sampleRate = 44100;
MediastreamerAndroidContext mac = getInstance();
// When using the OpenSLES sound card, the system is capable of giving us the best values to use for the buffer size and the sample rate
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment