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 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
88 int64_t MediaFileImpl::TimeUntilNextProcess() | 88 int64_t MediaFileImpl::TimeUntilNextProcess() |
89 { | 89 { |
90 WEBRTC_TRACE( | 90 WEBRTC_TRACE( |
91 kTraceWarning, | 91 kTraceWarning, |
92 kTraceFile, | 92 kTraceFile, |
93 _id, | 93 _id, |
94 "TimeUntilNextProcess: This method is not used by MediaFile class."); | 94 "TimeUntilNextProcess: This method is not used by MediaFile class."); |
95 return -1; | 95 return -1; |
96 } | 96 } |
97 | 97 |
98 int32_t MediaFileImpl::Process() | 98 void MediaFileImpl::Process() |
99 { | 99 { |
100 WEBRTC_TRACE(kTraceWarning, kTraceFile, _id, | 100 WEBRTC_TRACE(kTraceWarning, kTraceFile, _id, |
101 "Process: This method is not used by MediaFile class."); | 101 "Process: This method is not used by MediaFile class."); |
102 return -1; | |
103 } | 102 } |
104 | 103 |
105 int32_t MediaFileImpl::PlayoutAudioData(int8_t* buffer, | 104 int32_t MediaFileImpl::PlayoutAudioData(int8_t* buffer, |
106 size_t& dataLengthInBytes) | 105 size_t& dataLengthInBytes) |
107 { | 106 { |
108 WEBRTC_TRACE(kTraceStream, kTraceFile, _id, | 107 WEBRTC_TRACE(kTraceStream, kTraceFile, _id, |
109 "MediaFileImpl::PlayoutData(buffer= 0x%x, bufLen= %" PRIuS ")", | 108 "MediaFileImpl::PlayoutData(buffer= 0x%x, bufLen= %" PRIuS ")", |
110 buffer, dataLengthInBytes); | 109 buffer, dataLengthInBytes); |
111 | 110 |
112 const size_t bufferLengthInBytes = dataLengthInBytes; | 111 const size_t bufferLengthInBytes = dataLengthInBytes; |
(...skipping 1015 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1128 { | 1127 { |
1129 if((frequency == 8000) || (frequency == 16000)|| (frequency == 32000)) | 1128 if((frequency == 8000) || (frequency == 16000)|| (frequency == 32000)) |
1130 { | 1129 { |
1131 return true; | 1130 return true; |
1132 } | 1131 } |
1133 WEBRTC_TRACE(kTraceError, kTraceFile, -1, | 1132 WEBRTC_TRACE(kTraceError, kTraceFile, -1, |
1134 "Frequency should be 8000, 16000 or 32000 (Hz)"); | 1133 "Frequency should be 8000, 16000 or 32000 (Hz)"); |
1135 return false; | 1134 return false; |
1136 } | 1135 } |
1137 } // namespace webrtc | 1136 } // namespace webrtc |
OLD | NEW |