mirror of
https://github.com/love2d/love.git
synced 2026-08-16 00:02:12 +02:00
Edited out a few duds.
--HG-- branch : minor
This commit is contained in:
@@ -168,7 +168,7 @@ private:
|
||||
PoolThread *poolThread;
|
||||
|
||||
DistanceModel distanceModel;
|
||||
float metersPerUnit = 1.0;
|
||||
//float metersPerUnit = 1.0;
|
||||
}; // Audio
|
||||
|
||||
#ifdef ALC_EXT_EFX
|
||||
|
||||
@@ -274,7 +274,7 @@ bool Effect::setParams(Type type, const std::vector<float> ¶ms)
|
||||
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> ¶ms)
|
||||
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;
|
||||
|
||||
Reference in New Issue
Block a user