[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:
@@ -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),
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user