This commit is contained in:
Glenn Maynard
2004-11-30 21:43:40 +00:00
parent 5e2abe41aa
commit 876d741158
@@ -100,11 +100,9 @@ DSound::DSound()
{
HRESULT hr;
#ifndef _XBOX
// Initialize COM
if( FAILED( hr = CoInitialize( NULL ) ) )
RageException::ThrowNonfatal(hr_ssprintf(hr, "CoInitialize"));
#endif
// Create IDirectSound using the primary sound device
if( FAILED( hr = DirectSoundCreate( NULL, &ds, NULL ) ) )
@@ -141,9 +139,7 @@ DSound::DSound()
DSound::~DSound()
{
ds->Release();
#ifndef _XBOX
CoUninitialize();
#endif
}
bool DSound::IsEmulated() const