webrtc/api/audio/audio_processing_statistics.cc
Harald Alvestrand 5efb280e2b Reland "Mark deprecated features with [[deprecated]]"
This reverts commit 7e1a12d6ff.

Reason for revert: Removed the problematic deprecation

Original change's description:
> Revert "Mark deprecated features with [[deprecated]]"
>
> This reverts commit 3cf5dc1bec.
>
> Reason for revert: Broke downstream project (Nearby)
>
> Original change's description:
> > Mark deprecated features with [[deprecated]]
> >
> > This was the result of asking Gemini
> > "Consider the interfaces in @api. There are comments that indicate that certain methods are deprecated, but the methods don't have [[deprecated]] on them. Make a CL that adds [[deprecated]] to those methods"
> >
> > followed by a few rounds of reverting and working around errors.
> >
> > Bug: None
> > Change-Id: I5d7b1f89fff01277ce96e940aa7340cdfcb728cc
> > Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/407441
> > Reviewed-by: Tomas Gunnarsson <tommi@webrtc.org>
> > Commit-Queue: Harald Alvestrand <hta@webrtc.org>
> > Cr-Commit-Position: refs/heads/main@{#45623}
>
> Bug: None
> No-Presubmit: true
> No-Tree-Checks: true
> No-Try: true
> Change-Id: Ib5c58e36e94b915a01514455c8a2ad561b61a5c9
> Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/409000
> Bot-Commit: Rubber Stamper <rubber-stamper@appspot.gserviceaccount.com>
> Commit-Queue: Harald Alvestrand <hta@webrtc.org>
> Cr-Commit-Position: refs/heads/main@{#45629}

Bug: None
Change-Id: If8a4e8d6ec5455d892eb3fbb3243417e1a1712b9
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/408942
Commit-Queue: Harald Alvestrand <hta@webrtc.org>
Reviewed-by: Tomas Gunnarsson <tommi@webrtc.org>
Cr-Commit-Position: refs/heads/main@{#45632}
2025-09-12 02:03:36 -07:00

28 lines
948 B
C++

/*
* Copyright 2017 The WebRTC project authors. All Rights Reserved.
*
* Use of this source code is governed by a BSD-style license
* that can be found in the LICENSE file in the root of the source
* tree. An additional intellectual property rights grant can be found
* in the file PATENTS. All contributing project authors may
* be found in the AUTHORS file in the root of the source tree.
*/
#include "api/audio/audio_processing_statistics.h"
namespace webrtc {
AudioProcessingStats::AudioProcessingStats() = default;
// TODO: https://issues.webrtc.org/42221314 - remove pragma when deprecated
// field `voice_detected` is removed.
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wdeprecated-declarations"
AudioProcessingStats::AudioProcessingStats(const AudioProcessingStats& other) =
default;
#pragma clang diagnostic pop
AudioProcessingStats::~AudioProcessingStats() = default;
} // namespace webrtc