Replace lrint(x) with static_cast(x+0.5)
Update 9 files Update RageSoundReader_Extend.cpp Update RageSoundReader_Preload.cpp Update RageSoundUtil.cpp Update RageSoundReader_ThreadedBuffer.cpp Update RageSoundReader_SpeedChange.cpp Update RageSoundReader_Resample_Good.cpp Update RageSoundReader_Merge.cpp Update RageSoundReader_Chain.cpp Update RageSoundMixBuffer.cpp
This commit is contained in:
@@ -56,7 +56,7 @@ void RageSoundReader_Chain::AddSound( int iIndex, float fOffsetSecs, float fPan
|
||||
|
||||
Sound s;
|
||||
s.iIndex = iIndex;
|
||||
s.iOffsetMS = std::lrint( fOffsetSecs * 1000 );
|
||||
s.iOffsetMS = static_cast<int>((fOffsetSecs * 1000) + 0.5 );
|
||||
s.fPan = fPan;
|
||||
s.pSound = nullptr;
|
||||
m_aSounds.push_back( s );
|
||||
|
||||
Reference in New Issue
Block a user