mirror of
https://github.com/xdsopl/robot36.git
synced 2025-12-06 07:12:07 +01:00
Increased audio buffer size to not lose samples during HF Fax saving
This commit is contained in:
parent
fd3d6fa3a1
commit
02018686b6
|
|
@ -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;
|
||||
int bufferSize = Integer.highestOneBit(recordRate) * frameSize * 4;
|
||||
int frameCount = recordRate / readsPerSecond;
|
||||
int bufferCount = frameCount * channelCount;
|
||||
recordBuffer = new float[bufferCount];
|
||||
|
|
|
|||
Loading…
Reference in a new issue