mirror of
https://github.com/libretro/scummvm.git
synced 2025-02-23 20:51:14 +00:00
map 0xD3 in VOC headers to 22050 Hz, too
svn-id: r10128
This commit is contained in:
parent
bb5f479a8c
commit
2c67f7b32f
@ -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;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user