| 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 // Note: the class cannot be used for reading and writing at the same time. | 11 // Note: the class cannot be used for reading and writing at the same time. |
| 12 #ifndef WEBRTC_MODULES_MEDIA_FILE_SOURCE_MEDIA_FILE_UTILITY_H_ | 12 #ifndef WEBRTC_MODULES_MEDIA_FILE_SOURCE_MEDIA_FILE_UTILITY_H_ |
| 13 #define WEBRTC_MODULES_MEDIA_FILE_SOURCE_MEDIA_FILE_UTILITY_H_ | 13 #define WEBRTC_MODULES_MEDIA_FILE_SOURCE_MEDIA_FILE_UTILITY_H_ |
| 14 | 14 |
| 15 #include <stdio.h> | 15 #include <stdio.h> |
| 16 | 16 |
| 17 #include "webrtc/common_types.h" | 17 #include "webrtc/common_types.h" |
| 18 #include "webrtc/modules/media_file/interface/media_file_defines.h" | 18 #include "webrtc/modules/media_file/include/media_file_defines.h" |
| 19 | 19 |
| 20 namespace webrtc { | 20 namespace webrtc { |
| 21 class InStream; | 21 class InStream; |
| 22 class OutStream; | 22 class OutStream; |
| 23 | 23 |
| 24 class ModuleFileUtility | 24 class ModuleFileUtility |
| 25 { | 25 { |
| 26 public: | 26 public: |
| 27 | 27 |
| 28 ModuleFileUtility(const int32_t id); | 28 ModuleFileUtility(const int32_t id); |
| (...skipping 246 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 275 | 275 |
| 276 // Only reading or writing can be enabled, not both. | 276 // Only reading or writing can be enabled, not both. |
| 277 bool _reading; | 277 bool _reading; |
| 278 bool _writing; | 278 bool _writing; |
| 279 | 279 |
| 280 // Scratch buffer used for turning stereo audio to mono. | 280 // Scratch buffer used for turning stereo audio to mono. |
| 281 uint8_t _tempData[WAV_MAX_BUFFER_SIZE]; | 281 uint8_t _tempData[WAV_MAX_BUFFER_SIZE]; |
| 282 }; | 282 }; |
| 283 } // namespace webrtc | 283 } // namespace webrtc |
| 284 #endif // WEBRTC_MODULES_MEDIA_FILE_SOURCE_MEDIA_FILE_UTILITY_H_ | 284 #endif // WEBRTC_MODULES_MEDIA_FILE_SOURCE_MEDIA_FILE_UTILITY_H_ |
| OLD | NEW |