Chromium Code Reviews

Side by Side Diff: webrtc/modules/audio_coding/neteq/comfort_noise.cc

Issue 2668523004: Move AudioDecoder and related stuff to the api/ directory (Closed)
Patch Set: more review fixes Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff |
OLDNEW
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
11 #include "webrtc/modules/audio_coding/neteq/comfort_noise.h" 11 #include "webrtc/modules/audio_coding/neteq/comfort_noise.h"
12 12
13 #include <assert.h> 13 #include <assert.h>
14 14
15 #include "webrtc/api/audio_codecs/audio_decoder.h"
15 #include "webrtc/base/logging.h" 16 #include "webrtc/base/logging.h"
16 #include "webrtc/modules/audio_coding/codecs/audio_decoder.h"
17 #include "webrtc/modules/audio_coding/neteq/decoder_database.h" 17 #include "webrtc/modules/audio_coding/neteq/decoder_database.h"
18 #include "webrtc/modules/audio_coding/neteq/dsp_helper.h" 18 #include "webrtc/modules/audio_coding/neteq/dsp_helper.h"
19 #include "webrtc/modules/audio_coding/neteq/sync_buffer.h" 19 #include "webrtc/modules/audio_coding/neteq/sync_buffer.h"
20 20
21 namespace webrtc { 21 namespace webrtc {
22 22
23 void ComfortNoise::Reset() { 23 void ComfortNoise::Reset() {
24 first_call_ = true; 24 first_call_ = true;
25 } 25 }
26 26
(...skipping 88 matching lines...)
115 } 115 }
116 // Remove |overlap_length_| samples from the front of |output| since they 116 // Remove |overlap_length_| samples from the front of |output| since they
117 // were mixed into |sync_buffer_| above. 117 // were mixed into |sync_buffer_| above.
118 output->PopFront(overlap_length_); 118 output->PopFront(overlap_length_);
119 } 119 }
120 first_call_ = false; 120 first_call_ = false;
121 return kOK; 121 return kOK;
122 } 122 }
123 123
124 } // namespace webrtc 124 } // namespace webrtc
OLDNEW
« no previous file with comments | « webrtc/modules/audio_coding/neteq/audio_decoder_impl.h ('k') | webrtc/modules/audio_coding/neteq/decoder_database.h » ('j') | no next file with comments »

Powered by Google App Engine