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 |
(...skipping 13 matching lines...) Expand all Loading... |
24 class FileAudioDeviceFactory { | 24 class FileAudioDeviceFactory { |
25 public: | 25 public: |
26 static FileAudioDevice* CreateFileAudioDevice(const int32_t id); | 26 static FileAudioDevice* CreateFileAudioDevice(const int32_t id); |
27 | 27 |
28 // The input file must be a readable 48k stereo raw file. The output | 28 // The input file must be a readable 48k stereo raw file. The output |
29 // file must be writable. The strings will be copied. | 29 // file must be writable. The strings will be copied. |
30 static void SetFilenamesToUse(const char* inputAudioFilename, | 30 static void SetFilenamesToUse(const char* inputAudioFilename, |
31 const char* outputAudioFilename); | 31 const char* outputAudioFilename); |
32 | 32 |
33 private: | 33 private: |
34 static const uint32_t MAX_FILENAME_LEN = 512; | 34 enum : uint32_t { MAX_FILENAME_LEN = 512 }; |
35 static bool _isConfigured; | 35 static bool _isConfigured; |
36 static char _inputAudioFilename[MAX_FILENAME_LEN]; | 36 static char _inputAudioFilename[MAX_FILENAME_LEN]; |
37 static char _outputAudioFilename[MAX_FILENAME_LEN]; | 37 static char _outputAudioFilename[MAX_FILENAME_LEN]; |
38 }; | 38 }; |
39 | 39 |
40 } // namespace webrtc | 40 } // namespace webrtc |
41 | 41 |
42 #endif // WEBRTC_AUDIO_DEVICE_FILE_AUDIO_DEVICE_FACTORY_H | 42 #endif // WEBRTC_AUDIO_DEVICE_FILE_AUDIO_DEVICE_FACTORY_H |
OLD | NEW |