- improvements
This commit is contained in:
parent
e1a4931375
commit
14fb3bbdbf
|
|
@ -154,6 +154,7 @@ int ChannelConverter::monoToStereo(const void *source, int sourceLength, void *d
|
|||
}
|
||||
|
||||
|
||||
#if defined(USE_WEBRTC_RESAMPLER)
|
||||
Resampler48kTo16k::Resampler48kTo16k()
|
||||
{
|
||||
WebRtcSpl_ResetResample48khzTo16khz(&mContext);
|
||||
|
|
@ -199,6 +200,8 @@ int Resampler16kto48k::process(const void *source, int sourceLen, void *dest, in
|
|||
return sourceLen * 3;
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
// ---------------- UniversalResampler -------------------
|
||||
UniversalResampler::UniversalResampler()
|
||||
{
|
||||
|
|
|
|||
|
|
@ -6,7 +6,10 @@
|
|||
#ifndef __AUDIO_RESAMPLER_H
|
||||
#define __AUDIO_RESAMPLER_H
|
||||
|
||||
#include "signal_processing_library/signal_processing_library.h"
|
||||
#ifdef USE_WEBRTC_RESAMPLER
|
||||
# include "signal_processing_library/signal_processing_library.h"
|
||||
#endif
|
||||
|
||||
#include "../helper/HL_Pointer.h"
|
||||
#include <vector>
|
||||
#include <memory>
|
||||
|
|
@ -69,6 +72,7 @@ namespace Audio
|
|||
void preload();
|
||||
};
|
||||
|
||||
#ifdef USE_WEBRTC_RESAMPLER
|
||||
// n*10 milliseconds buffers required!
|
||||
class Resampler48kTo16k
|
||||
{
|
||||
|
|
@ -92,6 +96,7 @@ namespace Audio
|
|||
WebRtc_Word32 mTemp[336];
|
||||
WebRtcSpl_State16khzTo48khz mContext;
|
||||
};
|
||||
#endif
|
||||
}
|
||||
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Reference in New Issue