This commit is contained in:
Glenn Maynard
2005-11-25 18:36:44 +00:00
parent d84c8b6cae
commit 9ed3cde95a
@@ -49,7 +49,6 @@ void DSound::SetPrimaryBufferMode()
IDirectSoundBuffer *pBuffer;
HRESULT hr = this->GetDS()->CreateSoundBuffer( &format, &pBuffer, NULL );
/* hr */
if( FAILED(hr) )
{
LOG->Warn(hr_ssprintf(hr, "Couldn't create primary buffer"));
@@ -351,13 +350,6 @@ DSoundBuf::~DSoundBuf()
delete [] m_pTempBuffer;
}
void round_up( int &i, int to )
{
i += (to-1);
i /= to;
i *= to;
}
/* Check to make sure that, given the current writeahead and chunksize, we're
* capable of filling the prefetch region entirely. If we aren't, increase
* the writeahead. If this happens, we're underruning. */