Mix using the vector unit on OS X.

This commit is contained in:
Steve Checkoway
2006-12-11 13:31:51 +00:00
parent 768c25ed1b
commit e7832c9ad4
+2 -2
View File
@@ -83,7 +83,7 @@ void RageSoundMixBuffer::write( const int16_t *pBuf, unsigned iSize, int iSource
void RageSoundMixBuffer::read( int16_t *pBuf )
{
#ifdef USE_VEC
if( g_bVector && (intptr_t(pBuf) & 0xF) == 0 )
if( g_bVector )
{
Vector::FastSoundRead( pBuf, m_pMixbuf, m_iBufUsed );
m_iBufUsed = 0;
@@ -101,7 +101,7 @@ void RageSoundMixBuffer::read( int16_t *pBuf )
void RageSoundMixBuffer::read( float *pBuf )
{
#ifdef USE_VEC
if( g_bVector && (intptr_t(pBuf) & 0xF) == 0 )
if( g_bVector )
{
Vector::FastSoundRead( pBuf, m_pMixbuf, m_iBufUsed );
m_iBufUsed = 0;