aboutsummaryrefslogtreecommitdiff
path: root/engines/agi/sound_sarien.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/agi/sound_sarien.cpp')
-rw-r--r--engines/agi/sound_sarien.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/engines/agi/sound_sarien.cpp b/engines/agi/sound_sarien.cpp
index 8cd6af32d5..c8a7042ea3 100644
--- a/engines/agi/sound_sarien.cpp
+++ b/engines/agi/sound_sarien.cpp
@@ -40,7 +40,7 @@ static const int16 waveformRamp[WAVEFORM_SIZE] = {
0, -248, -240, -232, -224, -216, -208, -200,
-192, -184, -176, -168, -160, -152, -144, -136,
-128, -120, -112, -104, -96, -88, -80, -72,
- -64, -56, -48, -40, -32, -24, -16, -8 // Ramp up
+ -64, -56, -48, -40, -32, -24, -16, -8 // Ramp up
};
static const int16 waveformSquare[WAVEFORM_SIZE] = {
@@ -51,7 +51,7 @@ static const int16 waveformSquare[WAVEFORM_SIZE] = {
-255, -230, -220, -220, -220, -220, -220, -220,
-220, -220, -220, -220, -220, -220, -220, -220,
-220, -220, -220, -220, -220, -220, -220, -220,
- -220, -220, -220, -110, 0, 0, 0, 0 // Square
+ -220, -220, -220, -110, 0, 0, 0, 0 // Square
};
static const int16 waveformMac[WAVEFORM_SIZE] = {
@@ -72,7 +72,7 @@ SoundGenSarien::SoundGenSarien(AgiBase *vm, Audio::Mixer *pMixer) : SoundGen(vm,
_env = false;
_playingSound = -1;
_playing = false;
- _useChorus = true; // FIXME: Currently always true?
+ _useChorus = true; // FIXME: Currently always true?
switch (_vm->_soundemu) {
case SOUND_EMU_NONE:
@@ -154,7 +154,7 @@ void SoundGenSarien::stopNote(int i) {
if (_useChorus) {
// Stop chorus ;)
if (_chn[i].type == AGI_SOUND_4CHN &&
- _vm->_soundemu == SOUND_EMU_NONE && i < 3) {
+ _vm->_soundemu == SOUND_EMU_NONE && i < 3) {
stopNote(i + 4);
}
}
@@ -175,7 +175,7 @@ void SoundGenSarien::playNote(int i, int freq, int vol) {
if (_useChorus) {
// Add chorus ;)
if (_chn[i].type == AGI_SOUND_4CHN &&
- _vm->_soundemu == SOUND_EMU_NONE && i < 3) {
+ _vm->_soundemu == SOUND_EMU_NONE && i < 3) {
int newfreq = freq * 1007 / 1000;
@@ -265,7 +265,7 @@ uint32 SoundGenSarien::mixSound() {
#endif
_sndBuffer[i] += (b * m) >> 4;
- p += (uint32) 118600 *4 / _chn[c].freq;
+ p += (uint32) 118600 * 4 / _chn[c].freq;
// FIXME: Fingolfin asks: why is there a FIXME here? Please either clarify what
// needs fixing, or remove it!