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:
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;
|
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…
Reference in a new issue