Restored buffer sizes

This commit is contained in:
Marek Ossowski 2025-08-21 01:19:56 +02:00
parent df16e3c318
commit 1ed9f9094c
2 changed files with 3 additions and 3 deletions

View file

@ -5,6 +5,6 @@ import android.graphics.Bitmap;
public abstract class BaseMode implements Mode {
@Override
public Bitmap postProcessScopeImage(Bitmap bmp) {
return Bitmap.createScaledBitmap(bmp, bmp.getWidth() / 3, bmp.getHeight() / 3, true);
return bmp;
}
}

View file

@ -319,7 +319,7 @@ public class MainActivity extends AppCompatActivity {
int sampleSize = audioFormat == AudioFormat.ENCODING_PCM_FLOAT ? 4 : 2;
int frameSize = sampleSize * channelCount;
int readsPerSecond = 50;
int bufferSize = Integer.highestOneBit(recordRate) * frameSize * 4;
int bufferSize = Integer.highestOneBit(recordRate) * frameSize;
int frameCount = recordRate / readsPerSecond;
int bufferCount = frameCount * channelCount;
recordBuffer = new float[bufferCount];
@ -568,7 +568,7 @@ public class MainActivity extends AppCompatActivity {
fgColor = getColor(R.color.fg);
thinColor = getColor(R.color.thin);
tintColor = getColor(R.color.tint);
scopeBuffer = new PixelBuffer(640 * 3, 2 * 1280 * 3);
scopeBuffer = new PixelBuffer(640, 2 * 1280);
waterfallPlotBuffer = new PixelBuffer(256, 2 * 256);
peakMeterBuffer = new PixelBuffer(1, 16);
imageBuffer = new PixelBuffer(800, 616);