| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (c) 2014 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2014 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/audio_device/dummy/file_audio_device_factory.h" | 11 #include "webrtc/modules/audio_device/dummy/file_audio_device_factory.h" |
| 12 | 12 |
| 13 #include <cstdlib> | 13 #include <cstdlib> |
| 14 #include <cstring> | 14 #include <cstring> |
| 15 | 15 |
| 16 #include "webrtc/base/logging.h" | |
| 17 #include "webrtc/modules/audio_device/dummy/file_audio_device.h" | 16 #include "webrtc/modules/audio_device/dummy/file_audio_device.h" |
| 17 #include "webrtc/rtc_base/logging.h" |
| 18 | 18 |
| 19 namespace webrtc { | 19 namespace webrtc { |
| 20 | 20 |
| 21 bool FileAudioDeviceFactory::_isConfigured = false; | 21 bool FileAudioDeviceFactory::_isConfigured = false; |
| 22 char FileAudioDeviceFactory::_inputAudioFilename[MAX_FILENAME_LEN] = ""; | 22 char FileAudioDeviceFactory::_inputAudioFilename[MAX_FILENAME_LEN] = ""; |
| 23 char FileAudioDeviceFactory::_outputAudioFilename[MAX_FILENAME_LEN] = ""; | 23 char FileAudioDeviceFactory::_outputAudioFilename[MAX_FILENAME_LEN] = ""; |
| 24 | 24 |
| 25 FileAudioDevice* FileAudioDeviceFactory::CreateFileAudioDevice( | 25 FileAudioDevice* FileAudioDeviceFactory::CreateFileAudioDevice( |
| 26 const int32_t id) { | 26 const int32_t id) { |
| 27 // Bail out here if the files haven't been set explicitly. | 27 // Bail out here if the files haven't been set explicitly. |
| (...skipping 20 matching lines...) Expand all Loading... |
| 48 _isConfigured = true; | 48 _isConfigured = true; |
| 49 #else | 49 #else |
| 50 // Sanity: must be compiled with the right define to run this. | 50 // Sanity: must be compiled with the right define to run this. |
| 51 printf("Trying to use dummy file devices, but is not compiled " | 51 printf("Trying to use dummy file devices, but is not compiled " |
| 52 "with WEBRTC_DUMMY_FILE_DEVICES. Bailing out.\n"); | 52 "with WEBRTC_DUMMY_FILE_DEVICES. Bailing out.\n"); |
| 53 std::exit(1); | 53 std::exit(1); |
| 54 #endif | 54 #endif |
| 55 } | 55 } |
| 56 | 56 |
| 57 } // namespace webrtc | 57 } // namespace webrtc |
| OLD | NEW |