Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(931)

Side by Side Diff: webrtc/modules/audio_coding/codecs/isac/main/source/isac.c

Issue 1417173004: audio_coding: rename interface -> include (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Restored incorrectly renamed header guards and fixed an old error Created 5 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
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 /* 11 /*
12 * isac.c 12 * isac.c
13 * 13 *
14 * This C file contains the functions for the ISAC API 14 * This C file contains the functions for the ISAC API
15 * 15 *
16 */ 16 */
17 17
18 #include "webrtc/modules/audio_coding/codecs/isac/main/interface/isac.h" 18 #include "webrtc/modules/audio_coding/codecs/isac/main/include/isac.h"
19 19
20 #include <assert.h> 20 #include <assert.h>
21 #include <math.h> 21 #include <math.h>
22 #include <stdio.h> 22 #include <stdio.h>
23 #include <stdlib.h> 23 #include <stdlib.h>
24 #include <string.h> 24 #include <string.h>
25 25
26 #include "webrtc/common_audio/signal_processing/include/signal_processing_librar y.h" 26 #include "webrtc/common_audio/signal_processing/include/signal_processing_librar y.h"
27 #include "webrtc/modules/audio_coding/codecs/isac/main/source/bandwidth_estimato r.h" 27 #include "webrtc/modules/audio_coding/codecs/isac/main/source/bandwidth_estimato r.h"
28 #include "webrtc/modules/audio_coding/codecs/isac/main/source/codec.h" 28 #include "webrtc/modules/audio_coding/codecs/isac/main/source/codec.h"
(...skipping 2325 matching lines...) Expand 10 before | Expand all | Expand 10 after
2354 } 2354 }
2355 2355
2356 void WebRtcIsac_SetEncSampRateInDecoder(ISACStruct* inst, 2356 void WebRtcIsac_SetEncSampRateInDecoder(ISACStruct* inst,
2357 int sample_rate_hz) { 2357 int sample_rate_hz) {
2358 ISACMainStruct* instISAC = (ISACMainStruct*)inst; 2358 ISACMainStruct* instISAC = (ISACMainStruct*)inst;
2359 assert(instISAC->initFlag & BIT_MASK_DEC_INIT); 2359 assert(instISAC->initFlag & BIT_MASK_DEC_INIT);
2360 assert(!(instISAC->initFlag & BIT_MASK_ENC_INIT)); 2360 assert(!(instISAC->initFlag & BIT_MASK_ENC_INIT));
2361 assert(sample_rate_hz == 16000 || sample_rate_hz == 32000); 2361 assert(sample_rate_hz == 16000 || sample_rate_hz == 32000);
2362 instISAC->encoderSamplingRateKHz = sample_rate_hz / 1000; 2362 instISAC->encoderSamplingRateKHz = sample_rate_hz / 1000;
2363 } 2363 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698