- cleanup namespace Audio usage here

This commit is contained in:
Dmytro Bogovych 2019-02-04 09:15:21 +03:00
parent 51780413af
commit 0a54d7f7db
1 changed files with 5 additions and 2 deletions

View File

@ -11,10 +11,12 @@
#include <algorithm> #include <algorithm>
#include "speex/speex_resampler.h" #include "speex/speex_resampler.h"
using namespace Audio;
#define IS_FRACTIONAL_RATE(X) (((X) % 8000) != 0) #define IS_FRACTIONAL_RATE(X) (((X) % 8000) != 0)
namespace Audio
{
SpeexResampler::SpeexResampler() SpeexResampler::SpeexResampler()
:mContext(NULL), mErrorCode(0), mSourceRate(0), mDestRate(0), mLastSample(0) :mContext(NULL), mErrorCode(0), mSourceRate(0), mDestRate(0), mLastSample(0)
{ {
@ -279,3 +281,4 @@ PResampler UniversalResampler::findResampler(int sourceRate, int destRate)
return r; return r;
} }
} // end of namespace