other potential fix

This commit is contained in:
Ryzerth 2020-12-06 17:26:42 +01:00
parent 51d90c1898
commit ca9d2c01af
2 changed files with 4 additions and 4 deletions

View File

@ -142,17 +142,17 @@ private:
PaError err; PaError err;
float sampleRate = dev->sampleRates[dev->srId]; float sampleRate = dev->sampleRates[dev->srId];
int bufferSize = sampleRate / 200.0f; int bufferSize = sampleRate / 60.0f;
if (dev->channels == 2) { if (dev->channels == 2) {
stereoRB.data.setMaxLatency(bufferSize * 2); stereoRB.data.setMaxLatency(bufferSize * 2);
stereoRB.start(); stereoRB.start();
err = Pa_OpenStream(&stream, NULL, &outputParams, sampleRate, bufferSize, 0, _stereo_cb, this); err = Pa_OpenStream(&stream, NULL, &outputParams, sampleRate, paFramesPerBufferUnspecified, 0, _stereo_cb, this);
} }
else { else {
monoRB.data.setMaxLatency(bufferSize * 2); monoRB.data.setMaxLatency(bufferSize * 2);
monoRB.start(); monoRB.start();
err = Pa_OpenStream(&stream, NULL, &outputParams, sampleRate, bufferSize, 0, _mono_cb, this); err = Pa_OpenStream(&stream, NULL, &outputParams, sampleRate, paFramesPerBufferUnspecified, 0, _mono_cb, this);
} }
if (err != 0) { if (err != 0) {

View File

@ -19,7 +19,7 @@
"bandPlan": "General", "bandPlan": "General",
"bandPlanEnabled": true, "bandPlanEnabled": true,
"fftHeight": 296, "fftHeight": 296,
"frequency": 98672900, "frequency": 96400000,
"max": 0.0, "max": 0.0,
"maximized": false, "maximized": false,
"menuOrder": [ "menuOrder": [