mirror of
https://github.com/TES3MP/TES3MP.git
synced 2025-09-27 06:55:54 -04:00
Fix lip animation regression
This commit is contained in:
parent
1fd9fba7a3
commit
76dd3e4034
@ -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)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user