Revert "Audio fixes and mic denoise" (#38509)

Reverts zed-industries/zed#38493

Release Notes:

- N/A
This commit is contained in:
David Kleingeld
2025-09-19 10:33:38 -04:00
committed by GitHub
parent aa5b99dc11
commit 2e97ef32c4
13 changed files with 123 additions and 454 deletions
+3 -3
View File
@@ -138,13 +138,13 @@ impl Engine {
const SPECTRUM_INPUT: &str = "input_2";
const MEMORY_INPUT: &str = "input_3";
let spectrum =
let memory_input =
Tensor::from_slice::<_, f32>(&self.in_magnitude, (1, 1, FFT_OUT_SIZE), &Device::Cpu)
.expect("the in magnitude has enough elements to fill the Tensor");
let inputs = HashMap::from([
(SPECTRUM_INPUT.to_string(), spectrum),
(MEMORY_INPUT.to_string(), self.spectral_memory.clone()),
(MEMORY_INPUT.to_string(), memory_input),
(SPECTRUM_INPUT.to_string(), self.spectral_memory.clone()),
]);
inputs
}
+1 -1
View File
@@ -84,7 +84,7 @@ impl<S: Source> Denoiser<S> {
.spawn(move || {
run_neural_denoiser(denoised_tx, input_rx);
})
.expect("Should be ablet to spawn threads");
.unwrap();
Ok(Self {
inner: source,