@@ -153,7 +153,7 @@ fn init_input_audio(ui: &AppWindow) -> Result<()> {
153153
154154 let mut control_setting = global_store ! ( ui) . get_setting_control ( ) ;
155155 control_setting. input_audio = default_input. name . into ( ) ;
156- control_setting. input_audio_sound = 100 .0;
156+ control_setting. input_audio_gain = 0 .0;
157157 control_setting. enable_input_audio = true ;
158158 global_store ! ( ui) . set_setting_control ( control_setting. clone ( ) ) ;
159159 global_logic ! ( ui) . invoke_set_setting_control ( control_setting) ;
@@ -210,7 +210,7 @@ fn init_desktop_speaker(ui: &AppWindow) -> Result<()> {
210210
211211 Ok ( recorder) => {
212212 let amplification = Arc :: new ( AtomicI32 :: new (
213- config:: all ( ) . control . desktop_speaker_sound . max ( 0.0 ) as i32 ,
213+ config:: all ( ) . control . desktop_speaker_gain as i32 ,
214214 ) ) ;
215215 let recorder = recorder. with_amplification ( amplification. clone ( ) ) ;
216216
@@ -415,7 +415,7 @@ fn inner_input_audio_changed(ui: &AppWindow, name: SharedString) -> Result<()> {
415415 }
416416
417417 let amplification = Arc :: new ( AtomicI32 :: new (
418- config:: all ( ) . control . input_audio_sound . max ( 0.0 ) as i32 ,
418+ config:: all ( ) . control . input_audio_gain as i32 ,
419419 ) ) ;
420420
421421 let recorder = AudioRecorder :: new ( Some ( 1024 ) ) ?. with_amplification ( amplification. clone ( ) ) ;
@@ -525,10 +525,10 @@ fn inner_start_recording(ui_weak: Weak<AppWindow>) -> Result<()> {
525525 . with_remove_cache_files ( all_config. recorder . remove_temporary_files )
526526 . with_audio_device_name ( input_audio_name)
527527 . with_audio_amplification ( Arc :: new ( AtomicI32 :: new (
528- all_config. control . input_audio_sound as i32 ,
528+ all_config. control . input_audio_gain as i32 ,
529529 ) ) )
530530 . with_speaker_amplification ( Arc :: new ( AtomicI32 :: new (
531- all_config. control . desktop_speaker_sound as i32 ,
531+ all_config. control . desktop_speaker_gain as i32 ,
532532 ) ) )
533533 . with_fps ( all_config. recorder . fps . clone ( ) . into ( ) )
534534 . with_resolution ( resolution) ;
0 commit comments