From 66e9d4f5e8f35b28f8abd9ce53a0da4da3ce8985 Mon Sep 17 00:00:00 2001 From: Jordi Vilalta Prat Date: Sun, 27 Jan 2008 19:47:41 +0000 Subject: Removed trailing spaces. svn-id: r30664 --- sound/softsynth/ym2612.cpp | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'sound/softsynth/ym2612.cpp') diff --git a/sound/softsynth/ym2612.cpp b/sound/softsynth/ym2612.cpp index e3aa9d2528..57ad0f1c62 100644 --- a/sound/softsynth/ym2612.cpp +++ b/sound/softsynth/ym2612.cpp @@ -96,8 +96,8 @@ void Operator2612::setInstrument(byte const *instrument) { void Operator2612::keyOn() { _state = _s_attacking; _tickCount = 0; - _phase = 0; - _currentLevel = ((int32)0x7f << 15); + _phase = 0; + _currentLevel = ((int32)0x7f << 15); } void Operator2612::keyOff() { @@ -124,7 +124,7 @@ void Operator2612::frequency(int freq) { else { value = powtbl[(r&3) << 7]; value *= 1 << (r >> 2); - value *= 41; + value *= 41; value /= 1 << (15 + 5); value *= 127 - _specifiedTotalLevel; value /= 127; @@ -228,11 +228,11 @@ void Operator2612::nextTick(const int *phasebuf, int *outbuf, int buflen) { } if (level < zero_level) { - int phaseShift = *phasebuf >> 2; + int phaseShift = *phasebuf >> 2; if (_feedbackLevel) phaseShift += (output << (_feedbackLevel - 1)) / 1024; output = sintbl[((_phase >> 7) + phaseShift) & 0x7ff]; - output >>= (level >> 18); + output >>= (level >> 18); // Here is the original code, which requires 64-bit ints // output *= powtbl[511 - ((level>>25)&511)]; // output >>= 16; @@ -437,9 +437,9 @@ void Voice2612::pitchBend(int value) { } void Voice2612::recalculateFrequency() { - // - // - // + // + // + // int32 basefreq = frequencyTable[_note]; int cfreq = frequencyTable[_note - (_note % 12)]; int oct = _note / 12; @@ -696,7 +696,7 @@ void MidiDriver_YM2612::createLookupTables() { }; // (int)(880.0 * 256.0 * pow(2.0, (note-0x51)/12.0)) - // + // frequencyTable = new int [120]; for (block = -1; block < 9; block++) { for (i = 0; i < 12; i++) { @@ -706,7 +706,7 @@ void MidiDriver_YM2612::createLookupTables() { } keycodeTable = new int [120]; - // detune + // detune for (block = -1; block < 9; block++) { for (i = 0; i < 12; i++) { // see p.204 -- cgit v1.2.3