Disable a trace I don't need right now;
error check.
This commit is contained in:
@@ -143,7 +143,8 @@ void DSoundBuf::SetSampleRate(int hz)
|
|||||||
{
|
{
|
||||||
samplerate = hz;
|
samplerate = hz;
|
||||||
HRESULT hr = buf->SetFrequency(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)
|
void DSoundBuf::SetVolume(float vol)
|
||||||
|
|||||||
@@ -250,7 +250,7 @@ void RageSound_DSound::StartMixing(RageSound *snd)
|
|||||||
if(stream_pool[i]->state == stream_pool[i]->INACTIVE)
|
if(stream_pool[i]->state == stream_pool[i]->INACTIVE)
|
||||||
stream_pool[i]->state = stream_pool[i]->PLAYING;
|
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
|
/* Called by a RageSound; asks us to stop mixing them. When this
|
||||||
|
|||||||
Reference in New Issue
Block a user