Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(415)

Side by Side Diff: webrtc/modules/audio_processing/aec_dump/aec_dump_factory.h

Issue 2747123007: Test submission of complete AEC-dump refactoring. (Closed)
Patch Set: Changed interface and build structure after reviewer comments. Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 /*
2 * Copyright (c) 2017 The WebRTC project authors. All Rights Reserved.
3 *
4 * Use of this source code is governed by a BSD-style license
5 * that can be found in the LICENSE file in the root of the source
6 * tree. An additional intellectual property rights grant can be found
7 * in the file PATENTS. All contributing project authors may
8 * be found in the AUTHORS file in the root of the source tree.
9 */
10
11 #ifndef WEBRTC_MODULES_AUDIO_PROCESSING_AEC_DUMP_AEC_DUMP_FACTORY_H_
12 #define WEBRTC_MODULES_AUDIO_PROCESSING_AEC_DUMP_AEC_DUMP_FACTORY_H_
13
14 #include <memory>
15 #include <string>
16
17 #include "webrtc/modules/audio_processing/include/aec_dump.h"
18
19 namespace rtc {
20 class TaskQueue;
21 } // namespace rtc
22
23 namespace webrtc {
24
25 class AecDumpFactory {
26 public:
27 // TODO(aleloi): update comments to new creation scheme.
28 // If called when a recording is active, that file is closed, and a
29 // new file is opened. Messages waiting to be written asynchronously
30 // to the old file may be lost. Returns true iff opening file for
31 // writing succeeded.
32
33 // Closes associated file. Messages waiting to be written to file
34 // asynchronously may be lost. This method is safe to call when no
35 // recording is active. A recording does not have to be closed
36 // manually with this method; instead the AecDump instance may be
37 // destroyed.
38 static std::unique_ptr<AecDump> Create(std::string file_name,
39 int64_t max_log_size_bytes,
40 rtc::TaskQueue* worker_queue);
41 static std::unique_ptr<AecDump> Create(FILE* handle,
42 int64_t max_log_size_bytes,
43 rtc::TaskQueue* worker_queue);
44 };
45
46 } // namespace webrtc
47
48 #endif // WEBRTC_MODULES_AUDIO_PROCESSING_AEC_DUMP_AEC_DUMP_FACTORY_H_
OLDNEW
« no previous file with comments | « webrtc/modules/audio_processing/aec_dump/BUILD.gn ('k') | webrtc/modules/audio_processing/aec_dump/aec_dump_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698