Enable more compiler warnings and treat them as errors.
This commit is contained in:
+5
-10
@@ -176,20 +176,15 @@ int64_t pos_map_queue::Search( int64_t iSourceFrame, bool *bApproximate ) const
|
||||
* SoundStopped has been called.
|
||||
* 3. Underflow; we'll be given a larger frame number than we know about.
|
||||
*/
|
||||
#if defined(WIN32)
|
||||
#define I64F "%I64i"
|
||||
#elif defined(__x86_64__)
|
||||
#define I64F "%li"
|
||||
#else
|
||||
#define I64F "%lli"
|
||||
#endif
|
||||
static RageTimer last;
|
||||
if( last.PeekDeltaTime() >= 1.0f )
|
||||
{
|
||||
last.GetDeltaTime();
|
||||
LOG->Trace( "Approximate sound time: driver frame " I64F ", m_pImpl->m_Queue frame " I64F ".." I64F " (dist " I64F "), closest position is " I64F,
|
||||
iSourceFrame, pClosestBlock->m_iDestFrame, pClosestBlock->m_iDestFrame+pClosestBlock->m_iFrames,
|
||||
iClosestPositionDist, iClosestPosition );
|
||||
std::stringstream ss;
|
||||
ss << "Approximate sound time: driver frame " << iSourceFrame << ", m_pImpl->m_Queue frame "
|
||||
<< pClosestBlock->m_iDestFrame << ".." << (pClosestBlock->m_iDestFrame+pClosestBlock->m_iFrames)
|
||||
<< " (dist " << iClosestPositionDist << "), closest position is " << iClosestPosition;
|
||||
LOG->Trace( "%s", ss.str().c_str() );
|
||||
}
|
||||
|
||||
if( bApproximate )
|
||||
|
||||
Reference in New Issue
Block a user