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:
sukibaby
2024-05-03 23:17:59 -07:00
committed by teejusb
parent bd075c42a1
commit 2e2d49393b
9 changed files with 19 additions and 19 deletions
+1 -1
View File
@@ -237,7 +237,7 @@ void RageSoundReader_ThreadedBuffer::BufferingThread()
else
{
m_Event.Unlock();
usleep( std::lrint(fTimeToSleep * 1000000) );
usleep( static_cast<int>((fTimeToSleep * 1000000) + 0.5) );
m_Event.Lock();
}
}