aboutsummaryrefslogtreecommitdiff
path: root/engines/gob/sound
diff options
context:
space:
mode:
authorSven Hesse2009-06-22 20:52:08 +0000
committerSven Hesse2009-06-22 20:52:08 +0000
commit3f404ef3c9e5a3c657c9ed1951aa2b9c04542725 (patch)
tree977e8c99cab6adac19724fb53aa6ae4518d6c82b /engines/gob/sound
parent6c7a790b54ad0e158b379b6937066c795cd11114 (diff)
downloadscummvm-rg350-3f404ef3c9e5a3c657c9ed1951aa2b9c04542725.tar.gz
scummvm-rg350-3f404ef3c9e5a3c657c9ed1951aa2b9c04542725.tar.bz2
scummvm-rg350-3f404ef3c9e5a3c657c9ed1951aa2b9c04542725.zip
Removing trailing tabs
svn-id: r41784
Diffstat (limited to 'engines/gob/sound')
-rw-r--r--engines/gob/sound/adlib.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/engines/gob/sound/adlib.cpp b/engines/gob/sound/adlib.cpp
index bb8bb86479..b4543dec6f 100644
--- a/engines/gob/sound/adlib.cpp
+++ b/engines/gob/sound/adlib.cpp
@@ -66,7 +66,7 @@ void AdLib::init() {
_playing = false;
_freeData = false;
-
+
_repCount = -1;
_samplesTillPoll = 0;
@@ -356,11 +356,11 @@ void ADLPlayer::interpret() {
tempo = ((tempo & 3) << 8) | *(_playPos++);
}
_first = false;
-
+
// Instruction
instr = *(_playPos++);
channel = instr & 0x0F;
-
+
switch (instr & 0xF0) {
// Note on + Volume
case 0x00:
@@ -416,7 +416,7 @@ void ADLPlayer::interpret() {
_ended = true;
break;
}
-
+
// Temporization
tempo = *(_playPos++);
// End tempo
@@ -429,7 +429,7 @@ void ADLPlayer::interpret() {
tempo = ((tempo & 3) << 8) | *(_playPos++);
if (!tempo)
tempo ++;
-
+
_samplesTillPoll = tempo * (_rate / 1000);
}
@@ -544,7 +544,7 @@ bool MDYPlayer::loadMDY(const char *fileName) {
return loaded;
}
-bool MDYPlayer::loadTBR(Common::SeekableReadStream &stream) {
+bool MDYPlayer::loadTBR(Common::SeekableReadStream &stream) {
unloadTBR();
_timbresSize = stream.size();
@@ -600,7 +600,7 @@ void MDYPlayer::interpret() {
byte volume;
uint8 tempoMult, tempoFrac;
uint8 ctrlByte1, ctrlByte2;
- uint8 timbre;
+ uint8 timbre;
if (_first) {
for (int i = 0; i < 11; i ++)
@@ -666,7 +666,7 @@ void MDYPlayer::interpret() {
break;
case 0xE0:
warning("Pitch bend not yet implemented");
-
+
note = *(_playPos)++;
note += (unsigned)(*(_playPos++)) << 7;
@@ -748,7 +748,7 @@ void MDYPlayer::setVoice(byte voice, byte instr, bool set) {
for (int j = 0; j < 9; j++)
timbreName[j] = _timbres[6 + j + (instr * 9)];
debugC(6, kDebugSound, "Loading timbre %s", timbreName);
-
+
// i = 0 : 0 1 2 3 4 5 6 7 8 9 10 11 12 26
// i = 1 : 13 14 15 16 17 18 19 20 21 22 23 24 25 27
for (int i = 0; i < 2; i++) {