cleanup
This commit is contained in:
@@ -100,11 +100,9 @@ DSound::DSound()
|
|||||||
{
|
{
|
||||||
HRESULT hr;
|
HRESULT hr;
|
||||||
|
|
||||||
#ifndef _XBOX
|
|
||||||
// Initialize COM
|
// Initialize COM
|
||||||
if( FAILED( hr = CoInitialize( NULL ) ) )
|
if( FAILED( hr = CoInitialize( NULL ) ) )
|
||||||
RageException::ThrowNonfatal(hr_ssprintf(hr, "CoInitialize"));
|
RageException::ThrowNonfatal(hr_ssprintf(hr, "CoInitialize"));
|
||||||
#endif
|
|
||||||
|
|
||||||
// Create IDirectSound using the primary sound device
|
// Create IDirectSound using the primary sound device
|
||||||
if( FAILED( hr = DirectSoundCreate( NULL, &ds, NULL ) ) )
|
if( FAILED( hr = DirectSoundCreate( NULL, &ds, NULL ) ) )
|
||||||
@@ -141,9 +139,7 @@ DSound::DSound()
|
|||||||
DSound::~DSound()
|
DSound::~DSound()
|
||||||
{
|
{
|
||||||
ds->Release();
|
ds->Release();
|
||||||
#ifndef _XBOX
|
|
||||||
CoUninitialize();
|
CoUninitialize();
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
|
||||||
bool DSound::IsEmulated() const
|
bool DSound::IsEmulated() const
|
||||||
|
|||||||
Reference in New Issue
Block a user