mirror of
				https://github.com/PabloMK7/citra.git
				synced 2025-10-31 13:50:03 +00:00 
			
		
		
		
	Remove global state and add mic hot swapping
This commit is contained in:
		
							parent
							
								
									182d672c15
								
							
						
					
					
						commit
						f5df13eb24
					
				
					 6 changed files with 71 additions and 52 deletions
				
			
		|  | @ -42,9 +42,6 @@ ConfigureAudio::ConfigureAudio(QWidget* parent) | |||
|     connect(ui->input_type_combo_box, qOverload<int>(&QComboBox::currentIndexChanged), this, | ||||
|             &ConfigureAudio::updateAudioInputDevices); | ||||
| 
 | ||||
|     ui->input_type_combo_box->setEnabled(!Core::System::GetInstance().IsPoweredOn()); | ||||
|     ui->input_device_combo_box->setEnabled(!Core::System::GetInstance().IsPoweredOn()); | ||||
| 
 | ||||
|     this->setConfiguration(); | ||||
|     connect(ui->output_sink_combo_box, qOverload<int>(&QComboBox::currentIndexChanged), this, | ||||
|             &ConfigureAudio::updateAudioOutputDevices); | ||||
|  | @ -142,12 +139,7 @@ void ConfigureAudio::updateAudioOutputDevices(int sink_index) { | |||
|     } | ||||
| } | ||||
| 
 | ||||
| void ConfigureAudio::updateAudioInputDevices(int index) { | ||||
|     // TODO: Don't hardcode this to the index for "Real Device" without making it a constant
 | ||||
|     // somewhere
 | ||||
|     ui->input_device_combo_box->setEnabled(index == 1 && | ||||
|                                            !Core::System::GetInstance().IsPoweredOn()); | ||||
| } | ||||
| void ConfigureAudio::updateAudioInputDevices(int index) {} | ||||
| 
 | ||||
| void ConfigureAudio::retranslateUi() { | ||||
|     ui->retranslateUi(this); | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue