OLD | NEW |
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 |
11 #include "webrtc/modules/utility/include/file_recorder.h" | 11 #include "webrtc/voice_engine/file_recorder.h" |
12 | 12 |
13 #include <list> | 13 #include <list> |
14 | 14 |
15 #include "webrtc/base/platform_thread.h" | 15 #include "webrtc/base/platform_thread.h" |
16 #include "webrtc/common_audio/resampler/include/resampler.h" | 16 #include "webrtc/common_audio/resampler/include/resampler.h" |
17 #include "webrtc/common_types.h" | 17 #include "webrtc/common_types.h" |
18 #include "webrtc/engine_configurations.h" | 18 #include "webrtc/engine_configurations.h" |
19 #include "webrtc/modules/include/module_common_types.h" | 19 #include "webrtc/modules/include/module_common_types.h" |
20 #include "webrtc/modules/media_file/media_file.h" | 20 #include "webrtc/modules/media_file/media_file.h" |
21 #include "webrtc/modules/media_file/media_file_defines.h" | 21 #include "webrtc/modules/media_file/media_file_defines.h" |
22 #include "webrtc/modules/utility/source/coder.h" | |
23 #include "webrtc/system_wrappers/include/event_wrapper.h" | 22 #include "webrtc/system_wrappers/include/event_wrapper.h" |
24 #include "webrtc/system_wrappers/include/logging.h" | 23 #include "webrtc/system_wrappers/include/logging.h" |
25 #include "webrtc/typedefs.h" | 24 #include "webrtc/typedefs.h" |
| 25 #include "webrtc/voice_engine/coder.h" |
26 | 26 |
27 namespace webrtc { | 27 namespace webrtc { |
28 | 28 |
29 namespace { | 29 namespace { |
30 | 30 |
31 // The largest decoded frame size in samples (60ms with 32kHz sample rate). | 31 // The largest decoded frame size in samples (60ms with 32kHz sample rate). |
32 enum { MAX_AUDIO_BUFFER_IN_SAMPLES = 60 * 32 }; | 32 enum { MAX_AUDIO_BUFFER_IN_SAMPLES = 60 * 32 }; |
33 enum { MAX_AUDIO_BUFFER_IN_BYTES = MAX_AUDIO_BUFFER_IN_SAMPLES * 2 }; | 33 enum { MAX_AUDIO_BUFFER_IN_BYTES = MAX_AUDIO_BUFFER_IN_SAMPLES * 2 }; |
34 enum { kMaxAudioBufferQueueLength = 100 }; | 34 enum { kMaxAudioBufferQueueLength = 100 }; |
35 | 35 |
(...skipping 218 matching lines...) Loading... |
254 } // namespace | 254 } // namespace |
255 | 255 |
256 std::unique_ptr<FileRecorder> FileRecorder::CreateFileRecorder( | 256 std::unique_ptr<FileRecorder> FileRecorder::CreateFileRecorder( |
257 uint32_t instanceID, | 257 uint32_t instanceID, |
258 FileFormats fileFormat) { | 258 FileFormats fileFormat) { |
259 return std::unique_ptr<FileRecorder>( | 259 return std::unique_ptr<FileRecorder>( |
260 new FileRecorderImpl(instanceID, fileFormat)); | 260 new FileRecorderImpl(instanceID, fileFormat)); |
261 } | 261 } |
262 | 262 |
263 } // namespace webrtc | 263 } // namespace webrtc |
OLD | NEW |