[fix](trx-rs): remove wfm denoise and default stereo audio

Co-authored-by: Codex <codex@openai.com>
Signed-off-by: Stan Grams <sjg@haxx.space>
This commit is contained in:
2026-02-28 22:01:17 +01:00
parent d6c89bcc6b
commit df1bbf8f5b
15 changed files with 4 additions and 169 deletions
-1
View File
@@ -35,6 +35,5 @@ pub enum RigCommand {
SetFirTaps(u32),
SetWfmDeemphasis(u32),
SetWfmStereo(bool),
SetWfmDenoise(bool),
GetSpectrum,
}
@@ -518,7 +518,6 @@ pub fn command_from_rig_command(cmd: RigCommand) -> Box<dyn RigCommandHandler> {
| RigCommand::SetFirTaps(_)
| RigCommand::SetWfmDeemphasis(_)
| RigCommand::SetWfmStereo(_)
| RigCommand::SetWfmDenoise(_)
| RigCommand::GetSpectrum => Box::new(GetSnapshotCommand),
}
}
-10
View File
@@ -165,16 +165,6 @@ pub trait RigCat: Rig + Send {
)))
}
fn set_wfm_denoise<'a>(
&'a mut self,
_enabled: bool,
) -> Pin<Box<dyn Future<Output = DynResult<()>> + Send + 'a>> {
Box::pin(std::future::ready(Err(
Box::new(response::RigError::not_supported("set_wfm_denoise"))
as Box<dyn std::error::Error + Send + Sync>,
)))
}
fn set_wfm_stereo<'a>(
&'a mut self,
_enabled: bool,
-6
View File
@@ -273,8 +273,6 @@ pub struct RigFilterState {
pub wfm_deemphasis_us: u32,
#[serde(default = "default_wfm_stereo")]
pub wfm_stereo: bool,
#[serde(default = "default_wfm_denoise")]
pub wfm_denoise: bool,
#[serde(default)]
pub wfm_stereo_detected: bool,
}
@@ -283,10 +281,6 @@ fn default_wfm_deemphasis_us() -> u32 {
75
}
fn default_wfm_denoise() -> bool {
true
}
fn default_wfm_stereo() -> bool {
true
}