Pull size check out of the function. Profiling showed that a large number of samples (as in profiling samples, not sound samples) of Vector::FastSoundWrite() where in its prologue which was attributed to the early exit condition (basically just shuts the profiler up).

This commit is contained in:
Steve Checkoway
2006-05-17 09:13:08 +00:00
parent 060b68ff00
commit 032c1269bc
+1
View File
@@ -62,6 +62,7 @@ void RageSoundMixBuffer::write( const int16_t *buf, unsigned size )
#ifdef USE_VEC
if( g_bVector )
{
if( size )
Vector::FastSoundWrite( pBuf, buf, size, m_iVolumeFactor );
return;
}