cleanup
This commit is contained in:
@@ -49,7 +49,6 @@ void DSound::SetPrimaryBufferMode()
|
|||||||
|
|
||||||
IDirectSoundBuffer *pBuffer;
|
IDirectSoundBuffer *pBuffer;
|
||||||
HRESULT hr = this->GetDS()->CreateSoundBuffer( &format, &pBuffer, NULL );
|
HRESULT hr = this->GetDS()->CreateSoundBuffer( &format, &pBuffer, NULL );
|
||||||
/* hr */
|
|
||||||
if( FAILED(hr) )
|
if( FAILED(hr) )
|
||||||
{
|
{
|
||||||
LOG->Warn(hr_ssprintf(hr, "Couldn't create primary buffer"));
|
LOG->Warn(hr_ssprintf(hr, "Couldn't create primary buffer"));
|
||||||
@@ -351,13 +350,6 @@ DSoundBuf::~DSoundBuf()
|
|||||||
delete [] m_pTempBuffer;
|
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
|
/* 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
|
* capable of filling the prefetch region entirely. If we aren't, increase
|
||||||
* the writeahead. If this happens, we're underruning. */
|
* the writeahead. If this happens, we're underruning. */
|
||||||
|
|||||||
Reference in New Issue
Block a user