| 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 #ifndef WEBRTC_COMMON_AUDIO_WAV_FILE_H_ | 11 #ifndef WEBRTC_COMMON_AUDIO_WAV_FILE_H_ |
| 12 #define WEBRTC_COMMON_AUDIO_WAV_FILE_H_ | 12 #define WEBRTC_COMMON_AUDIO_WAV_FILE_H_ |
| 13 | 13 |
| 14 #ifdef __cplusplus | 14 #ifdef __cplusplus |
| 15 | 15 |
| 16 #include <stdint.h> | 16 #include <stdint.h> |
| 17 #include <cstddef> | 17 #include <cstddef> |
| 18 #include <string> | 18 #include <string> |
| 19 | 19 |
| 20 #include "webrtc/rtc_base/constructormagic.h" | 20 #include "webrtc/base/constructormagic.h" |
| 21 | 21 |
| 22 namespace webrtc { | 22 namespace webrtc { |
| 23 | 23 |
| 24 // Interface to provide access to WAV file parameters. | 24 // Interface to provide access to WAV file parameters. |
| 25 class WavFile { | 25 class WavFile { |
| 26 public: | 26 public: |
| 27 virtual ~WavFile() {} | 27 virtual ~WavFile() {} |
| 28 | 28 |
| 29 virtual int sample_rate() const = 0; | 29 virtual int sample_rate() const = 0; |
| 30 virtual size_t num_channels() const = 0; | 30 virtual size_t num_channels() const = 0; |
| (...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 109 size_t num_samples); | 109 size_t num_samples); |
| 110 int rtc_WavSampleRate(const rtc_WavWriter* wf); | 110 int rtc_WavSampleRate(const rtc_WavWriter* wf); |
| 111 size_t rtc_WavNumChannels(const rtc_WavWriter* wf); | 111 size_t rtc_WavNumChannels(const rtc_WavWriter* wf); |
| 112 size_t rtc_WavNumSamples(const rtc_WavWriter* wf); | 112 size_t rtc_WavNumSamples(const rtc_WavWriter* wf); |
| 113 | 113 |
| 114 #ifdef __cplusplus | 114 #ifdef __cplusplus |
| 115 } // extern "C" | 115 } // extern "C" |
| 116 #endif | 116 #endif |
| 117 | 117 |
| 118 #endif // WEBRTC_COMMON_AUDIO_WAV_FILE_H_ | 118 #endif // WEBRTC_COMMON_AUDIO_WAV_FILE_H_ |
| OLD | NEW |