From 2c67f7b32fbcdfe78b28da5a13a03d16c558d3d7 Mon Sep 17 00:00:00 2001 From: Max Horn Date: Tue, 9 Sep 2003 12:34:13 +0000 Subject: map 0xD3 in VOC headers to 22050 Hz, too svn-id: r10128 --- sound/voc.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sound') 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; } } -- cgit v1.2.3