mirror of
https://github.com/xlmnxp/blue-recorder.git
synced 2025-03-31 14:54:54 +03:00
fix mic record
This commit is contained in:
parent
2597d9fbdd
commit
a3425de469
@ -579,7 +579,9 @@ impl Ffmpeg {
|
||||
.to_string();
|
||||
let mut ffmpeg_command = FfmpegCommand::new();
|
||||
ffmpeg_command.format("dshow")
|
||||
.input(format!("audio={}", &self.audio_input_id))
|
||||
.input(format!("audio=\"{}\"", &self.audio_input_id.active_text()
|
||||
.ok_or_else(|| anyhow!("Failed to get audio input source."))?)
|
||||
)
|
||||
.format("ogg");
|
||||
// Disable bitrate if value is zero
|
||||
if self.audio_record_bitrate.value() as u16 > 0 {
|
||||
@ -612,7 +614,7 @@ impl Ffmpeg {
|
||||
.ok_or_else(|| anyhow!("Not exiting the input audio recording process successfully."))?
|
||||
.borrow_mut()
|
||||
.quit()?;
|
||||
}
|
||||
}
|
||||
Ok(())
|
||||
}
|
||||
|
||||
|
@ -210,6 +210,7 @@ fn build_ui(application: &Application, error_dialog: MessageDialog, error_messag
|
||||
#[cfg(any(target_os = "freebsd", target_os = "linux"))]
|
||||
let audio_output_source: String = audio_output_source().unwrap_or_else(|_| String::new());
|
||||
|
||||
#[cfg(any(target_os = "freebsd", target_os = "linux"))]
|
||||
audio_source_combobox.append(Some("default"), &get_bundle("audio-input", None));
|
||||
for (id, audio_source) in sources_descriptions.iter().enumerate() {
|
||||
audio_source_combobox.append(Some(id.to_string().as_str()), audio_source);
|
||||
|
Loading…
Reference in New Issue
Block a user