forked from chromium/chromium
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathaudio_processor_controls.h
38 lines (27 loc) · 1.07 KB
/
audio_processor_controls.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
// Copyright 2018 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef MEDIA_WEBRTC_AUDIO_PROCESSOR_CONTROLS_H_
#define MEDIA_WEBRTC_AUDIO_PROCESSOR_CONTROLS_H_
#include "base/callback.h"
#include "third_party/webrtc/api/media_stream_interface.h"
namespace base {
class File;
}
namespace media {
class AudioProcessorControls {
public:
using GetStatsCB = base::OnceCallback<void(
const webrtc::AudioProcessorInterface::AudioProcessorStatistics& stats)>;
// Request the latest stats from the audio processor. Stats are returned
// asynchronously through |callback|.
virtual void GetStats(GetStatsCB callback) = 0;
// Begin dumping echo cancellation data into |file|.
virtual void StartEchoCancellationDump(base::File file) = 0;
// Stop any ongoin dump of echo cancellation data.
virtual void StopEchoCancellationDump() = 0;
protected:
virtual ~AudioProcessorControls() = default;
};
} // namespace media
#endif // MEDIA_WEBRTC_AUDIO_PROCESSOR_CONTROLS_H_