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

Side by Side Diff: webrtc/voice_engine/file_recorder.cc

Issue 2779623002: remove more CriticalSectionWrappers. (Closed)
Patch Set: Add override 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
1 /* 1 /*
2 * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license 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 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 6 * tree. An additional intellectual property rights grant can be found
7 * in the file PATENTS. All contributing project authors may 7 * in the file PATENTS. All contributing project authors may
8 * be found in the AUTHORS file in the root of the source tree. 8 * be found in the AUTHORS file in the root of the source tree.
9 */ 9 */
10 10
(...skipping 14 matching lines...) Expand all
25 25
26 namespace webrtc { 26 namespace webrtc {
27 27
28 namespace { 28 namespace {
29 29
30 // The largest decoded frame size in samples (60ms with 32kHz sample rate). 30 // The largest decoded frame size in samples (60ms with 32kHz sample rate).
31 enum { MAX_AUDIO_BUFFER_IN_SAMPLES = 60 * 32 }; 31 enum { MAX_AUDIO_BUFFER_IN_SAMPLES = 60 * 32 };
32 enum { MAX_AUDIO_BUFFER_IN_BYTES = MAX_AUDIO_BUFFER_IN_SAMPLES * 2 }; 32 enum { MAX_AUDIO_BUFFER_IN_BYTES = MAX_AUDIO_BUFFER_IN_SAMPLES * 2 };
33 enum { kMaxAudioBufferQueueLength = 100 }; 33 enum { kMaxAudioBufferQueueLength = 100 };
34 34
35 class CriticalSectionWrapper;
36
37 class FileRecorderImpl : public FileRecorder { 35 class FileRecorderImpl : public FileRecorder {
38 public: 36 public:
39 FileRecorderImpl(uint32_t instanceID, FileFormats fileFormat); 37 FileRecorderImpl(uint32_t instanceID, FileFormats fileFormat);
40 ~FileRecorderImpl() override; 38 ~FileRecorderImpl() override;
41 39
42 // FileRecorder functions. 40 // FileRecorder functions.
43 int32_t RegisterModuleFileCallback(FileCallback* callback) override; 41 int32_t RegisterModuleFileCallback(FileCallback* callback) override;
44 FileFormats RecordingFileFormat() const override; 42 FileFormats RecordingFileFormat() const override;
45 int32_t StartRecordingAudioFile(const char* fileName, 43 int32_t StartRecordingAudioFile(const char* fileName,
46 const CodecInst& codecInst, 44 const CodecInst& codecInst,
(...skipping 206 matching lines...) Expand 10 before | Expand all | Expand 10 after
253 } // namespace 251 } // namespace
254 252
255 std::unique_ptr<FileRecorder> FileRecorder::CreateFileRecorder( 253 std::unique_ptr<FileRecorder> FileRecorder::CreateFileRecorder(
256 uint32_t instanceID, 254 uint32_t instanceID,
257 FileFormats fileFormat) { 255 FileFormats fileFormat) {
258 return std::unique_ptr<FileRecorder>( 256 return std::unique_ptr<FileRecorder>(
259 new FileRecorderImpl(instanceID, fileFormat)); 257 new FileRecorderImpl(instanceID, fileFormat));
260 } 258 }
261 259
262 } // namespace webrtc 260 } // namespace webrtc
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698