Update to current webrtc library
This is from the upstream library commit id 3326535126e435f1ba647885ce43a8f0f3d317eb, corresponding to Chromium 88.0.4290.1.
This commit is contained in:
@ -8,9 +8,12 @@
|
||||
* be found in the AUTHORS file in the root of the source tree.
|
||||
*/
|
||||
|
||||
#include "webrtc/common_audio/vad/include/vad.h"
|
||||
#include "common_audio/vad/include/vad.h"
|
||||
|
||||
#include "webrtc/base/checks.h"
|
||||
#include <memory>
|
||||
|
||||
#include "common_audio/vad/include/webrtc_vad.h"
|
||||
#include "rtc_base/checks.h"
|
||||
|
||||
namespace webrtc {
|
||||
|
||||
@ -35,7 +38,7 @@ class VadImpl final : public Vad {
|
||||
case 1:
|
||||
return kActive;
|
||||
default:
|
||||
RTC_DCHECK(false) << "WebRtcVad_Process returned an error.";
|
||||
RTC_NOTREACHED() << "WebRtcVad_Process returned an error.";
|
||||
return kError;
|
||||
}
|
||||
}
|
||||
@ -56,8 +59,8 @@ class VadImpl final : public Vad {
|
||||
|
||||
} // namespace
|
||||
|
||||
rtc::scoped_ptr<Vad> CreateVad(Vad::Aggressiveness aggressiveness) {
|
||||
return rtc::scoped_ptr<Vad>(new VadImpl(aggressiveness));
|
||||
std::unique_ptr<Vad> CreateVad(Vad::Aggressiveness aggressiveness) {
|
||||
return std::unique_ptr<Vad>(new VadImpl(aggressiveness));
|
||||
}
|
||||
|
||||
} // namespace webrtc
|
||||
|
Reference in New Issue
Block a user