diff options
author | Strangerke | 2014-12-12 23:22:41 +0100 |
---|---|---|
committer | Paul Gilbert | 2014-12-12 23:08:29 -0500 |
commit | de63e2afbc967016e5cdd1d5aff126a1fca7d4ed (patch) | |
tree | 054fe356b13926773979c10b1b145651dd7623a0 /engines/access | |
parent | 712a18d0500dd51dc113ebaf5ac420ceaa8e456c (diff) | |
download | scummvm-rg350-de63e2afbc967016e5cdd1d5aff126a1fca7d4ed.tar.gz scummvm-rg350-de63e2afbc967016e5cdd1d5aff126a1fca7d4ed.tar.bz2 scummvm-rg350-de63e2afbc967016e5cdd1d5aff126a1fca7d4ed.zip |
ACCESS: Properly indent some code in playSound
Diffstat (limited to 'engines/access')
-rw-r--r-- | engines/access/sound.cpp | 24 |
1 files changed, 18 insertions, 6 deletions
diff --git a/engines/access/sound.cpp b/engines/access/sound.cpp index e151458f21..57f95c9516 100644 --- a/engines/access/sound.cpp +++ b/engines/access/sound.cpp @@ -96,8 +96,8 @@ void SoundManager::playSound(Resource *res, int priority) { // header content: // "STEVE" - fixed header // byte - sample rate - // 01h mapped internally to 3Ch ?? - // 02h mapped internally to 78h seems to be 11025Hz + // 01h mapped internally to 3Ch + // 02h mapped internally to 78h // 03h mapped internally to B5h // 04h mapped internally to F1h // byte - unknown @@ -109,10 +109,22 @@ void SoundManager::playSound(Resource *res, int priority) { int sampleRate = 0; switch (internalSampleRate) { - case 1: sampleRate = 16666; break; // 3Ch -> C4h time constant - case 2: sampleRate = 8334; break; // 78h -> 88h time constant - case 3: sampleRate = 5525; break; // B5h -> 4Bh time constant - case 4: sampleRate = 4150; break; // F1h -> 0Fh time constant + case 1: // NEG(3Ch) -> C4h time constant + sampleRate = 16666; + break; + + case 2: // NEG(78h) -> 88h time constant + sampleRate = 8334; + break; + + case 3: // NEG(B5h) -> 4Bh time constant + sampleRate = 5525; + break; + + case 4: // NEG(F1h) -> 0Fh time constant + sampleRate = 4150; + break; + default: error("Unexpected internal Sample Rate %d", internalSampleRate); return; |