1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-03-27 05:10:26 +00:00

Fix lip animation regression

This commit is contained in:
scrawl 2015-05-24 04:40:09 +02:00
parent 1fd9fba7a3
commit 76dd3e4034

View file

@ -31,8 +31,8 @@ namespace MWSound
value = ((char)(data[sample*advance]^0x80))/128.f; value = ((char)(data[sample*advance]^0x80))/128.f;
else if (type == SampleType_Int16) else if (type == SampleType_Int16)
{ {
value = *reinterpret_cast<const uint16_t*>(&data[sample*advance]); value = *reinterpret_cast<const int16_t*>(&data[sample*advance]);
value /= float(std::numeric_limits<uint16_t>::max()); value /= float(std::numeric_limits<int16_t>::max());
} }
else if (type == SampleType_Float32) else if (type == SampleType_Float32)
{ {