Edited out a few duds.

--HG--
branch : minor
This commit is contained in:
Raidho
2016-12-09 16:32:36 +03:00
parent e60f3c6cda
commit 9fd53ad46f
2 changed files with 2 additions and 3 deletions
+1 -1
View File
@@ -168,7 +168,7 @@ private:
PoolThread *poolThread;
DistanceModel distanceModel;
float metersPerUnit = 1.0;
//float metersPerUnit = 1.0;
}; // Audio
#ifdef ALC_EXT_EFX
+1 -2
View File
@@ -274,7 +274,7 @@ bool Effect::setParams(Type type, const std::vector<float> &params)
int fine = AL_PITCH_SHIFTER_DEFAULT_FINE_TUNE;
if (!isnanf(params[1]))
{
coarse = (int)ceil(params[1]);
coarse = (int)floor(params[1]);
fine = (int)(fmod(params[1], 1.0)*100.0);
if (fine > 50)
{
@@ -286,7 +286,6 @@ bool Effect::setParams(Type type, const std::vector<float> &params)
fine += 100;
coarse -= 1;
}
std::cout << params[1] << " " << coarse << " " << fine << std::endl;
if (coarse > AL_PITCH_SHIFTER_MAX_COARSE_TUNE)
{
coarse = AL_PITCH_SHIFTER_MAX_COARSE_TUNE;