aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorKari Salminen2009-07-14 13:48:31 +0000
committerKari Salminen2009-07-14 13:48:31 +0000
commit264e44d14ab5dd39584aa371c217b3c5caaa1d58 (patch)
tree24493f3fc2c8f87eab65930516e5296baa3c0639 /engines
parentc4437fa013af3858f3dcc0f8fb85fbec107ce6ee (diff)
downloadscummvm-rg350-264e44d14ab5dd39584aa371c217b3c5caaa1d58.tar.gz
scummvm-rg350-264e44d14ab5dd39584aa371c217b3c5caaa1d58.tar.bz2
scummvm-rg350-264e44d14ab5dd39584aa371c217b3c5caaa1d58.zip
Fix some typos and grammar in sword1's Sound::checkSpeechFileEndianness-function's comments.
svn-id: r42477
Diffstat (limited to 'engines')
-rw-r--r--engines/sword1/sound.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/engines/sword1/sound.cpp b/engines/sword1/sound.cpp
index b3fa1aa0fd..b23bf71445 100644
--- a/engines/sword1/sound.cpp
+++ b/engines/sword1/sound.cpp
@@ -77,11 +77,11 @@ void Sound::checkSpeechFileEndianness() {
// little endian assumption. The one with the smallest sum should be the
// correct one (the sound wave is supposed to be relatively smooth).
// It needs at least 1000 samples to get stable result (the code below is
- // using the first 2000 samples of the wav sound.
+ // using the first 2000 samples of the wav sound).
- // Init speach file if not already done.
+ // Init speech file if not already done.
if (!_currentCowFile) {
- // Open one of the speech file. It uses SwordEngine::_systemVars.currentCD
+ // Open one of the speech files. It uses SwordEngine::_systemVars.currentCD
// to decide which file to open, therefore if it is currently set to zero
// we have to set it to either 1 or 2 (I decided to set it to 1 as this is
// more likely to be the first file that will be needed).
@@ -92,22 +92,22 @@ void Sound::checkSpeechFileEndianness() {
}
initCowSystem();
if (no_current_cd) {
- // In case it fails with CD1 retyr with CD2
+ // In case it fails with CD1 retry with CD2
if (!_currentCowFile) {
SwordEngine::_systemVars.currentCD = 2;
initCowSystem();
}
- // Reset curentCD flag
+ // Reset currentCD flag
SwordEngine::_systemVars.currentCD = 0;
}
}
- // Testing for endianness makes sense only if using the nom compressed files.
+ // Testing for endianness makes sense only if using the uncompressed files.
if (_cowHeader == NULL || (_cowMode != CowWave && _cowMode != CowDemo))
return;
// I picked the sample to use randomly (I just made sure it is long enough so that there is
- // a fair change of the heuristic to have a stable result and work for every languages).
+ // a fair change of the heuristic to have a stable result and work for every language).
int roomNo = _currentCowFile == 1 ? 1 : 129;
int localNo = _currentCowFile == 1 ? 2 : 933;
// Get the speech data and apply the heuristic
@@ -119,7 +119,7 @@ void Sound::checkSpeechFileEndianness() {
double be_diff_sum = 0., le_diff_sum = 0.;
_bigEndianSpeech = false;
int16 *data = uncompressSpeech(index + _cowHeaderSize, sampleSize, &size);
- // Compute average of differecen between two consecutive samples for both BE and LE
+ // Compute average of difference between two consecutive samples for both BE and LE
if (data) {
if (size > 4000)
size = 2000;