- Rename package to webrtc-audio-processing-1 to use the unversioned package name for webrtc-audio-processing 2.1 - Use %patch -P N instead of deprecated %patchN. - ExcludeArch s390, s390x and ppc64 since big endian support is not implemented. - Remove the tar.xz file. Having the obscpio file is enough - Use also dashes instead of underscores in the manual Requires - Rename the generated library package names to add a dash between the name and soname (libwebrtc*-1-3 instead of libwebrtc*1-3) - Rename the generated packages to use dashes instead of underscores - Change baselibs.conf accordingly - Add patch to reduce the required meson version so the package builds in Leap 15.4/15.5: * reduce-meson-dep.patch - Update to version 1.3: * build: Bump version to 1.3 * meson: Fix generation of pkgconfig files * build: Bump version to 1.2 * meson: Update minimum version based on what abseil wrap needs * build: Expose absl as a dependency of webrtc-audio-processing * meson: Update to latest wrap, install required absl headers * doc: Update tarball generation process * file_utils.h: Fix build with gcc-13 OBS-URL: https://build.opensuse.org/package/show/multimedia:libs/webrtc-audio-processing-1?expand=0&rev=1
61 lines
2.6 KiB
Diff
61 lines
2.6 KiB
Diff
Index: webrtc-audio-processing-1.3/webrtc/modules/audio_processing/agc2/adaptive_mode_level_estimator.cc
|
|
===================================================================
|
|
--- webrtc-audio-processing-1.3.orig/webrtc/modules/audio_processing/agc2/adaptive_mode_level_estimator.cc
|
|
+++ webrtc-audio-processing-1.3/webrtc/modules/audio_processing/agc2/adaptive_mode_level_estimator.cc
|
|
@@ -39,6 +39,7 @@ float GetLevel(const VadLevelAnalyzer::R
|
|
return vad_level.rms_dbfs;
|
|
break;
|
|
case LevelEstimatorType::kPeak:
|
|
+ default:
|
|
return vad_level.peak_dbfs;
|
|
break;
|
|
}
|
|
Index: webrtc-audio-processing-1.3/webrtc/modules/audio_processing/audio_processing_impl.cc
|
|
===================================================================
|
|
--- webrtc-audio-processing-1.3.orig/webrtc/modules/audio_processing/audio_processing_impl.cc
|
|
+++ webrtc-audio-processing-1.3/webrtc/modules/audio_processing/audio_processing_impl.cc
|
|
@@ -112,6 +112,7 @@ GainControl::Mode Agc1ConfigModeToInterf
|
|
case Agc1Config::kAdaptiveDigital:
|
|
return GainControl::kAdaptiveDigital;
|
|
case Agc1Config::kFixedDigital:
|
|
+ default:
|
|
return GainControl::kFixedDigital;
|
|
}
|
|
}
|
|
@@ -1852,6 +1853,7 @@ void AudioProcessingImpl::InitializeNois
|
|
return NsConfig::SuppressionLevel::k21dB;
|
|
default:
|
|
RTC_NOTREACHED();
|
|
+ return NsConfig::SuppressionLevel::k21dB; // Just to keep the compiler happy
|
|
}
|
|
};
|
|
|
|
Index: webrtc-audio-processing-1.3/webrtc/modules/audio_processing/include/audio_processing.cc
|
|
===================================================================
|
|
--- webrtc-audio-processing-1.3.orig/webrtc/modules/audio_processing/include/audio_processing.cc
|
|
+++ webrtc-audio-processing-1.3/webrtc/modules/audio_processing/include/audio_processing.cc
|
|
@@ -26,6 +26,7 @@ std::string NoiseSuppressionLevelToStrin
|
|
case AudioProcessing::Config::NoiseSuppression::Level::kHigh:
|
|
return "High";
|
|
case AudioProcessing::Config::NoiseSuppression::Level::kVeryHigh:
|
|
+ default:
|
|
return "VeryHigh";
|
|
}
|
|
}
|
|
@@ -38,6 +39,7 @@ std::string GainController1ModeToString(
|
|
case AudioProcessing::Config::GainController1::Mode::kAdaptiveDigital:
|
|
return "AdaptiveDigital";
|
|
case AudioProcessing::Config::GainController1::Mode::kFixedDigital:
|
|
+ default:
|
|
return "FixedDigital";
|
|
}
|
|
}
|
|
@@ -48,6 +50,7 @@ std::string GainController2LevelEstimato
|
|
case AudioProcessing::Config::GainController2::LevelEstimator::kRms:
|
|
return "Rms";
|
|
case AudioProcessing::Config::GainController2::LevelEstimator::kPeak:
|
|
+ default:
|
|
return "Peak";
|
|
}
|
|
}
|