diff options
| author | Jordi Vilalta Prat | 2008-01-27 19:47:41 +0000 |
|---|---|---|
| committer | Jordi Vilalta Prat | 2008-01-27 19:47:41 +0000 |
| commit | 66e9d4f5e8f35b28f8abd9ce53a0da4da3ce8985 (patch) | |
| tree | e27aadabecd8dd910884280e6559ff9c94c3d73c /sound/mods | |
| parent | 278857698dc7b1623096fe1ad12511dc4c886c7e (diff) | |
| download | scummvm-rg350-66e9d4f5e8f35b28f8abd9ce53a0da4da3ce8985.tar.gz scummvm-rg350-66e9d4f5e8f35b28f8abd9ce53a0da4da3ce8985.tar.bz2 scummvm-rg350-66e9d4f5e8f35b28f8abd9ce53a0da4da3ce8985.zip | |
Removed trailing spaces.
svn-id: r30664
Diffstat (limited to 'sound/mods')
| -rw-r--r-- | sound/mods/infogrames.cpp | 4 | ||||
| -rw-r--r-- | sound/mods/paula.cpp | 10 | ||||
| -rw-r--r-- | sound/mods/paula.h | 4 |
3 files changed, 9 insertions, 9 deletions
diff --git a/sound/mods/infogrames.cpp b/sound/mods/infogrames.cpp index 3f607d213e..97987b037a 100644 --- a/sound/mods/infogrames.cpp +++ b/sound/mods/infogrames.cpp @@ -106,7 +106,7 @@ const uint16 Infogrames::periods[] = {0x6ACC, 0x64CC, 0x5F25, 0x59CE, 0x54C3, 0x5003, 0x4B86, 0x4747, 0x4346, 0x3F8B, 0x3BF3, 0x3892, 0x3568, 0x3269, 0x2F93, 0x2CEA, 0x2A66, 0x2801, 0x2566, 0x23A5, 0x21AF, 0x1FC4, 0x1DFE, 0x1C4E, 0x1ABC, 0x1936, 0x17CC, - 0x1676, 0x1533, 0x1401, 0x12E4, 0x11D5, 0x10D4, 0x0FE3, 0x0EFE, 0x0E26, + 0x1676, 0x1533, 0x1401, 0x12E4, 0x11D5, 0x10D4, 0x0FE3, 0x0EFE, 0x0E26, 0x0D5B, 0x0C9B, 0x0BE5, 0x0B3B, 0x0A9B, 0x0A02, 0x0972, 0x08E9, 0x0869, 0x07F1, 0x077F, 0x0713, 0x06AD, 0x064D, 0x05F2, 0x059D, 0x054D, 0x0500, 0x04B8, 0x0475, 0x0435, 0x03F8, 0x03BF, 0x038A, 0x0356, 0x0326, 0x02F9, @@ -405,7 +405,7 @@ int16 Infogrames::tune(Slide &slide, int16 start) const { } } slide.dataOffset = off; - } + } slide.flags |= 1; return start; } diff --git a/sound/mods/paula.cpp b/sound/mods/paula.cpp index cfd9ebff11..545390ff93 100644 --- a/sound/mods/paula.cpp +++ b/sound/mods/paula.cpp @@ -92,21 +92,21 @@ template<bool stereo> int Paula::readBufferIntern(int16 *buffer, const int numSamples) { int samples = _stereo ? numSamples / 2 : numSamples; while (samples > 0) { - + // Handle 'interrupts'. This gives subclasses the chance to adjust the channel data // (e.g. insert new samples, do pitch bending, whatever). if (_curInt == _intFreq) { interrupt(); _curInt = 0; } - + // Compute how many samples to generate: at most the requested number of samples, // of course, but we may stop earlier when an 'interrupt' is expected. const int nSamples = MIN(samples, _intFreq - _curInt); - + // Loop over the four channels of the emulated Paula chip for (int voice = 0; voice < NUM_VOICES; voice++) { - + // No data, or paused -> skip channel if (!_voice[voice].data || (_voice[voice].period <= 0)) continue; @@ -148,7 +148,7 @@ int Paula::readBufferIntern(int16 *buffer, const int numSamples) { sLen = intToFrac(_voice[voice].length); // If the "rate" exceeds the sample rate, we would have to perform constant - // wrap arounds. So, apply the first step of the euclidean algorithm to + // wrap arounds. So, apply the first step of the euclidean algorithm to // achieve the same more efficiently: Take rate modulo sLen if (sLen < rate) rate %= sLen; diff --git a/sound/mods/paula.h b/sound/mods/paula.h index e86c05b7f8..e3c6002451 100644 --- a/sound/mods/paula.h +++ b/sound/mods/paula.h @@ -79,12 +79,12 @@ protected: _playing = true; _end = false; } - + void stopPaula() { _playing = false; _end = true; } - + void setChannelPanning(byte channel, byte panning) { assert(channel < NUM_VOICES); _voice[channel].panning = panning; |
