mirror of
https://github.com/AlexandreRouma/SDRPlusPlus.git
synced 2025-02-03 05:14:44 +01:00
potential fix to audio issues
This commit is contained in:
parent
f4f8c77ffa
commit
a6a4193fbb
@ -142,7 +142,7 @@ private:
|
|||||||
PaError err;
|
PaError err;
|
||||||
|
|
||||||
float sampleRate = dev->sampleRates[dev->srId];
|
float sampleRate = dev->sampleRates[dev->srId];
|
||||||
int bufferSize = sampleRate / 60.0f;
|
int bufferSize = sampleRate / 200.0f;
|
||||||
|
|
||||||
if (dev->channels == 2) {
|
if (dev->channels == 2) {
|
||||||
stereoRB.data.setMaxLatency(bufferSize * 2);
|
stereoRB.data.setMaxLatency(bufferSize * 2);
|
||||||
|
@ -125,7 +125,6 @@ void windowInit() {
|
|||||||
// Add "select folder" option for the file source
|
// Add "select folder" option for the file source
|
||||||
// Fix SSB demod
|
// Fix SSB demod
|
||||||
// FIX AUDIO ISSUE ON BOTH LINUX AND SOMETIMES WINDOWS (probly the ring buffer, though double buffering could help)
|
// FIX AUDIO ISSUE ON BOTH LINUX AND SOMETIMES WINDOWS (probly the ring buffer, though double buffering could help)
|
||||||
// Add CW mode to radio module
|
|
||||||
// Add default main config to avoid having to ship one
|
// Add default main config to avoid having to ship one
|
||||||
// Have a good directory system on both linux and windows
|
// Have a good directory system on both linux and windows
|
||||||
// Switch to double buffering
|
// Switch to double buffering
|
||||||
|
@ -123,6 +123,7 @@ private:
|
|||||||
currentDemod->setAudioSampleRate(audioSampRate);
|
currentDemod->setAudioSampleRate(audioSampRate);
|
||||||
stream.setInput(currentDemod->getOutput());
|
stream.setInput(currentDemod->getOutput());
|
||||||
currentDemod->select();
|
currentDemod->select();
|
||||||
|
vfo->output->flush();
|
||||||
currentDemod->start();
|
currentDemod->start();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -19,7 +19,7 @@
|
|||||||
"bandPlan": "General",
|
"bandPlan": "General",
|
||||||
"bandPlanEnabled": true,
|
"bandPlanEnabled": true,
|
||||||
"fftHeight": 296,
|
"fftHeight": 296,
|
||||||
"frequency": 98930000,
|
"frequency": 98672900,
|
||||||
"max": 0.0,
|
"max": 0.0,
|
||||||
"maximized": false,
|
"maximized": false,
|
||||||
"menuOrder": [
|
"menuOrder": [
|
||||||
@ -42,7 +42,7 @@
|
|||||||
"Radio": {
|
"Radio": {
|
||||||
"muted": false,
|
"muted": false,
|
||||||
"sink": "Audio",
|
"sink": "Audio",
|
||||||
"volume": 0.4183673560619354
|
"volume": 0.6858407258987427
|
||||||
},
|
},
|
||||||
"Radio 1": {
|
"Radio 1": {
|
||||||
"muted": true,
|
"muted": true,
|
||||||
|
@ -32,7 +32,7 @@
|
|||||||
"LNA": 23.415000915527344,
|
"LNA": 23.415000915527344,
|
||||||
"VGA": 16.332000732421875
|
"VGA": 16.332000732421875
|
||||||
},
|
},
|
||||||
"sampleRate": 2000000.0
|
"sampleRate": 8000000.0
|
||||||
},
|
},
|
||||||
"Microphone (Realtek High Definition Audio)": {
|
"Microphone (Realtek High Definition Audio)": {
|
||||||
"sampleRate": 96000.0
|
"sampleRate": 96000.0
|
||||||
|
Loading…
x
Reference in New Issue
Block a user