mirror of
				https://github.com/AlexandreRouma/SDRPlusPlus.git
				synced 2025-11-04 10:49:11 +01:00 
			
		
		
		
	potential fix to audio issues
This commit is contained in:
		@@ -142,7 +142,7 @@ private:
 | 
			
		||||
        PaError err;
 | 
			
		||||
 | 
			
		||||
        float sampleRate = dev->sampleRates[dev->srId];
 | 
			
		||||
        int bufferSize = sampleRate / 60.0f;
 | 
			
		||||
        int bufferSize = sampleRate / 200.0f;
 | 
			
		||||
 | 
			
		||||
        if (dev->channels == 2) {
 | 
			
		||||
            stereoRB.data.setMaxLatency(bufferSize * 2);
 | 
			
		||||
 
 | 
			
		||||
@@ -125,7 +125,6 @@ void windowInit() {
 | 
			
		||||
    // Add "select folder" option for the file source
 | 
			
		||||
    // Fix SSB demod
 | 
			
		||||
    // 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
 | 
			
		||||
    // Have a good directory system on both linux and windows
 | 
			
		||||
    // Switch to double buffering
 | 
			
		||||
 
 | 
			
		||||
@@ -123,6 +123,7 @@ private:
 | 
			
		||||
        currentDemod->setAudioSampleRate(audioSampRate);
 | 
			
		||||
        stream.setInput(currentDemod->getOutput());
 | 
			
		||||
        currentDemod->select();
 | 
			
		||||
        vfo->output->flush();
 | 
			
		||||
        currentDemod->start();
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -19,7 +19,7 @@
 | 
			
		||||
    "bandPlan": "General",
 | 
			
		||||
    "bandPlanEnabled": true,
 | 
			
		||||
    "fftHeight": 296,
 | 
			
		||||
    "frequency": 98930000,
 | 
			
		||||
    "frequency": 98672900,
 | 
			
		||||
    "max": 0.0,
 | 
			
		||||
    "maximized": false,
 | 
			
		||||
    "menuOrder": [
 | 
			
		||||
@@ -42,7 +42,7 @@
 | 
			
		||||
        "Radio": {
 | 
			
		||||
            "muted": false,
 | 
			
		||||
            "sink": "Audio",
 | 
			
		||||
            "volume": 0.4183673560619354
 | 
			
		||||
            "volume": 0.6858407258987427
 | 
			
		||||
        },
 | 
			
		||||
        "Radio 1": {
 | 
			
		||||
            "muted": true,
 | 
			
		||||
 
 | 
			
		||||
@@ -32,7 +32,7 @@
 | 
			
		||||
                "LNA": 23.415000915527344,
 | 
			
		||||
                "VGA": 16.332000732421875
 | 
			
		||||
            },
 | 
			
		||||
            "sampleRate": 2000000.0
 | 
			
		||||
            "sampleRate": 8000000.0
 | 
			
		||||
        },
 | 
			
		||||
        "Microphone (Realtek High Definition Audio)": {
 | 
			
		||||
            "sampleRate": 96000.0
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user