| Index: webrtc/audio/conversion.h
|
| diff --git a/webrtc/modules/audio_coding/codecs/isac/main/source/audio_decoder_isac.cc b/webrtc/audio/conversion.h
|
| similarity index 62%
|
| copy from webrtc/modules/audio_coding/codecs/isac/main/source/audio_decoder_isac.cc
|
| copy to webrtc/audio/conversion.h
|
| index 89879adafba17f6f31bc393074bd6c8ccf0a0b37..c1cf9b632e87432f8d172e2edd1fa164365e5eeb 100644
|
| --- a/webrtc/modules/audio_coding/codecs/isac/main/source/audio_decoder_isac.cc
|
| +++ b/webrtc/audio/conversion.h
|
| @@ -8,13 +8,15 @@
|
| * be found in the AUTHORS file in the root of the source tree.
|
| */
|
|
|
| -#include "webrtc/modules/audio_coding/codecs/isac/main/interface/audio_decoder_isac.h"
|
| -
|
| -#include "webrtc/modules/audio_coding/codecs/isac/audio_decoder_isac_t_impl.h"
|
| +#ifndef WEBRTC_AUDIO_CONVERSION_H_
|
| +#define WEBRTC_AUDIO_CONVERSION_H_
|
|
|
| namespace webrtc {
|
|
|
| -// Explicit instantiation:
|
| -template class AudioDecoderIsacT<IsacFloat>;
|
| -
|
| +// Convert fixed point number with 14 bit fractional part, to floating point.
|
| +inline float Q14ToFloat(uint16_t v) {
|
| + return static_cast<float>(v) / (1 << 14);
|
| +}
|
| } // namespace webrtc
|
| +
|
| +#endif // WEBRTC_AUDIO_CONVERSION_H_
|
|
|