mirror of
https://github.com/mollyim/webrtc.git
synced 2025-05-13 05:40:42 +01:00

This will make it easier for users to specify that they want iSAC in their codec factories, since they'll no longer have to worry about choosing either the fix or the float implementation. BUG=webrtc:8343 Change-Id: I5fb713710a8dd86162b5de73a2f0a851947f1411 Reviewed-on: https://webrtc-review.googlesource.com/6540 Reviewed-by: Fredrik Solenberg <solenberg@webrtc.org> Commit-Queue: Karl Wiberg <kwiberg@webrtc.org> Cr-Commit-Position: refs/heads/master@{#20222}
32 lines
1.1 KiB
C++
32 lines
1.1 KiB
C++
/*
|
|
* Copyright (c) 2017 The WebRTC project authors. All Rights Reserved.
|
|
*
|
|
* Use of this source code is governed by a BSD-style license
|
|
* that can be found in the LICENSE file in the root of the source
|
|
* tree. An additional intellectual property rights grant can be found
|
|
* in the file PATENTS. All contributing project authors may
|
|
* be found in the AUTHORS file in the root of the source tree.
|
|
*/
|
|
|
|
#ifndef API_AUDIO_CODECS_ISAC_AUDIO_ENCODER_ISAC_H_
|
|
#define API_AUDIO_CODECS_ISAC_AUDIO_ENCODER_ISAC_H_
|
|
|
|
#if WEBRTC_USE_BUILTIN_ISAC_FIX && !WEBRTC_USE_BUILTIN_ISAC_FLOAT
|
|
#include "api/audio_codecs/isac/audio_encoder_isac_fix.h" // nogncheck
|
|
#elif WEBRTC_USE_BUILTIN_ISAC_FLOAT && !WEBRTC_USE_BUILTIN_ISAC_FIX
|
|
#include "api/audio_codecs/isac/audio_encoder_isac_float.h" // nogncheck
|
|
#else
|
|
#error "Must choose either fix or float"
|
|
#endif
|
|
|
|
namespace webrtc {
|
|
|
|
#if WEBRTC_USE_BUILTIN_ISAC_FIX
|
|
using AudioEncoderIsac = AudioEncoderIsacFix;
|
|
#elif WEBRTC_USE_BUILTIN_ISAC_FLOAT
|
|
using AudioEncoderIsac = AudioEncoderIsacFloat;
|
|
#endif
|
|
|
|
} // namespace webrtc
|
|
|
|
#endif // API_AUDIO_CODECS_ISAC_AUDIO_ENCODER_ISAC_H_
|