mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-02-20 19:39:41 +00:00
Fix lip animation regression
This commit is contained in:
parent
1fd9fba7a3
commit
76dd3e4034
1 changed files with 2 additions and 2 deletions
|
@ -31,8 +31,8 @@ namespace MWSound
|
|||
value = ((char)(data[sample*advance]^0x80))/128.f;
|
||||
else if (type == SampleType_Int16)
|
||||
{
|
||||
value = *reinterpret_cast<const uint16_t*>(&data[sample*advance]);
|
||||
value /= float(std::numeric_limits<uint16_t>::max());
|
||||
value = *reinterpret_cast<const int16_t*>(&data[sample*advance]);
|
||||
value /= float(std::numeric_limits<int16_t>::max());
|
||||
}
|
||||
else if (type == SampleType_Float32)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue