Disable a trace I don't need right now;

error check.
This commit is contained in:
Glenn Maynard
2003-07-09 20:40:28 +00:00
parent a9e859f6fa
commit 7639f547f4
2 changed files with 3 additions and 2 deletions
+2 -1
View File
@@ -143,7 +143,8 @@ void DSoundBuf::SetSampleRate(int hz)
{
samplerate = hz;
HRESULT hr = buf->SetFrequency(hz);
LOG->Trace(hr_ssprintf(hr, "samp"));
if(FAILED(hr))
RageException::Throw(hr_ssprintf(hr, "buf->SetFrequency(%i)", hz));
}
void DSoundBuf::SetVolume(float vol)
@@ -250,7 +250,7 @@ void RageSound_DSound::StartMixing(RageSound *snd)
if(stream_pool[i]->state == stream_pool[i]->INACTIVE)
stream_pool[i]->state = stream_pool[i]->PLAYING;
LOG->Trace("new sound assigned to channel %i", i);
// LOG->Trace("new sound assigned to channel %i", i);
}
/* Called by a RageSound; asks us to stop mixing them. When this