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 |
(...skipping 228 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
239 kCodecG722_1c_48, | 239 kCodecG722_1c_48, |
240 kCodecG722_1c_32, | 240 kCodecG722_1c_32, |
241 kCodecG722_1c_24, | 241 kCodecG722_1c_24, |
242 kCodecAmr, | 242 kCodecAmr, |
243 kCodecAmrWb, | 243 kCodecAmrWb, |
244 kCodecG729, | 244 kCodecG729, |
245 kCodecG729_1, | 245 kCodecG729_1, |
246 kCodecG726_40, | 246 kCodecG726_40, |
247 kCodecG726_32, | 247 kCodecG726_32, |
248 kCodecG726_24, | 248 kCodecG726_24, |
249 kCodecG726_16, | 249 kCodecG726_16 |
250 kCodecSpeex8Khz, | |
251 kCodecSpeex16Khz | |
252 }; | 250 }; |
253 | 251 |
254 // TODO (hellner): why store multiple formats. Just store either codec_info_ | 252 // TODO (hellner): why store multiple formats. Just store either codec_info_ |
255 // or _wavFormatObj and supply conversion functions. | 253 // or _wavFormatObj and supply conversion functions. |
256 WAVE_FMTINFO_header _wavFormatObj; | 254 WAVE_FMTINFO_header _wavFormatObj; |
257 size_t _dataSize; // Chunk size if reading a WAV file | 255 size_t _dataSize; // Chunk size if reading a WAV file |
258 // Number of bytes to read. I.e. frame size in bytes. May be multiple | 256 // Number of bytes to read. I.e. frame size in bytes. May be multiple |
259 // chunks if reading WAV. | 257 // chunks if reading WAV. |
260 size_t _readSizeBytes; | 258 size_t _readSizeBytes; |
261 | 259 |
(...skipping 13 matching lines...) Expand all Loading... |
275 | 273 |
276 // Only reading or writing can be enabled, not both. | 274 // Only reading or writing can be enabled, not both. |
277 bool _reading; | 275 bool _reading; |
278 bool _writing; | 276 bool _writing; |
279 | 277 |
280 // Scratch buffer used for turning stereo audio to mono. | 278 // Scratch buffer used for turning stereo audio to mono. |
281 uint8_t _tempData[WAV_MAX_BUFFER_SIZE]; | 279 uint8_t _tempData[WAV_MAX_BUFFER_SIZE]; |
282 }; | 280 }; |
283 } // namespace webrtc | 281 } // namespace webrtc |
284 #endif // WEBRTC_MODULES_MEDIA_FILE_MEDIA_FILE_UTILITY_H_ | 282 #endif // WEBRTC_MODULES_MEDIA_FILE_MEDIA_FILE_UTILITY_H_ |
OLD | NEW |