kopia lustrzana https://github.com/xdsopl/robot36
Increased audio buffer size to not lose samples during HF Fax saving
rodzic
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];
|
||||
|
|
Ładowanie…
Reference in New Issue