diff options
author | Max Horn | 2003-09-09 12:34:13 +0000 |
---|---|---|
committer | Max Horn | 2003-09-09 12:34:13 +0000 |
commit | 2c67f7b32fbcdfe78b28da5a13a03d16c558d3d7 (patch) | |
tree | 43f25f443a568ae7115e15781010719b405b3997 /sound | |
parent | bb5f479a8c11d1189b004f20009508777060e56f (diff) | |
download | scummvm-rg350-2c67f7b32fbcdfe78b28da5a13a03d16c558d3d7.tar.gz scummvm-rg350-2c67f7b32fbcdfe78b28da5a13a03d16c558d3d7.tar.bz2 scummvm-rg350-2c67f7b32fbcdfe78b28da5a13a03d16c558d3d7.zip |
map 0xD3 in VOC headers to 22050 Hz, too
svn-id: r10128
Diffstat (limited to 'sound')
-rw-r--r-- | sound/voc.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sound/voc.h b/sound/voc.h index aa45880004..285611459c 100644 --- a/sound/voc.h +++ b/sound/voc.h @@ -52,11 +52,11 @@ struct VocBlockHeader { static inline int getSampleRateFromVOCRate(int vocSR) { if (vocSR == 0xa6) { return 11025; - } else if (vocSR == 0xd2) { + } else if (vocSR == 0xd2 || vocSR == 0xd3) { return 22050; } else { int sr = 1000000L / (256L - vocSR); - warning("inexact sample rate used: %i", sr); + warning("inexact sample rate used: %i (0x%x)", sr, vocSR); return sr; } } |