diff options
| author | Max Horn | 2005-05-08 21:49:52 +0000 |
|---|---|---|
| committer | Max Horn | 2005-05-08 21:49:52 +0000 |
| commit | cca744f69a9eb079a314c8f39af1faa4e7b1e5a6 (patch) | |
| tree | 1eb00deac3941d844ce98abc10eb4339955ef61d /sound/softsynth | |
| parent | 013e30eb389c40eb579cc8e3f05b8e8da80925ca (diff) | |
| download | scummvm-rg350-cca744f69a9eb079a314c8f39af1faa4e7b1e5a6.tar.gz scummvm-rg350-cca744f69a9eb079a314c8f39af1faa4e7b1e5a6.tar.bz2 scummvm-rg350-cca744f69a9eb079a314c8f39af1faa4e7b1e5a6.zip | |
Comply to our coding conventions
svn-id: r17975
Diffstat (limited to 'sound/softsynth')
| -rw-r--r-- | sound/softsynth/mt32/freeverb.cpp | 2 | ||||
| -rw-r--r-- | sound/softsynth/mt32/partial.cpp | 4 | ||||
| -rw-r--r-- | sound/softsynth/mt32/tables.cpp | 6 |
3 files changed, 6 insertions, 6 deletions
diff --git a/sound/softsynth/mt32/freeverb.cpp b/sound/softsynth/mt32/freeverb.cpp index 250be0eb5e..46193a5f4b 100644 --- a/sound/softsynth/mt32/freeverb.cpp +++ b/sound/softsynth/mt32/freeverb.cpp @@ -158,7 +158,7 @@ void revmodel::mute() { void revmodel::processreplace(float *inputL, float *inputR, float *outputL, float *outputR, long numsamples, int skip) { float outL, outR, input; - while(numsamples-- > 0) { + while (numsamples-- > 0) { int i; outL = outR = 0; diff --git a/sound/softsynth/mt32/partial.cpp b/sound/softsynth/mt32/partial.cpp index 4cbe4e015c..e7e7af2a7f 100644 --- a/sound/softsynth/mt32/partial.cpp +++ b/sound/softsynth/mt32/partial.cpp @@ -669,9 +669,9 @@ Bit32s Partial::getFiltEnvelope() { tStat->envsize = synth->tables.envTime[(int)patchCache->filtEnv.envtime[tStat->envstat]]; } else { Bit32u envTime = (int)patchCache->filtEnv.envtime[tStat->envstat]; - if(tStat->envstat > 1) { + if (tStat->envstat > 1) { int envDiff = abs(patchCache->filtEnv.envlevel[tStat->envstat] - patchCache->filtEnv.envlevel[tStat->envstat - 1]); - if(envTime > synth->tables.envDeltaMaxTime[envDiff]) { + if (envTime > synth->tables.envDeltaMaxTime[envDiff]) { envTime = synth->tables.envDeltaMaxTime[envDiff]; } } diff --git a/sound/softsynth/mt32/tables.cpp b/sound/softsynth/mt32/tables.cpp index 0acaa51df8..35b1672d40 100644 --- a/sound/softsynth/mt32/tables.cpp +++ b/sound/softsynth/mt32/tables.cpp @@ -161,11 +161,11 @@ void Tables::initEnvelopes(float samplerate) { envTime[lf] = samples; // Cap on envelope times depending on the level delta - if(elf == 0) { + if (elf == 0) { envDeltaMaxTime[lf] = 63; } else { float cap = 11 * log(elf) + 64; - if(cap > 100.0f) { + if (cap > 100.0f) { cap = 100.0f; } envDeltaMaxTime[lf] = (int)cap; @@ -380,7 +380,7 @@ void Tables::initMT32ConstantTables(Synth *synth) { // Distance of full volume reduction amplog = (float)(12.0f / (float)lf) * 24.0f; - if(distval > amplog) { + if (distval > amplog) { tvaBiasMult[lf][distval] = 0; } else { dval = (amplog - (float)distval) / amplog; |
