fix SetVolume
This commit is contained in:
@@ -307,7 +307,7 @@ void DSoundBuf::SetVolume(float vol)
|
|||||||
if( volume == new_volume )
|
if( volume == new_volume )
|
||||||
return;
|
return;
|
||||||
|
|
||||||
HRESULT hr = buf->SetVolume( volume );
|
HRESULT hr = buf->SetVolume( new_volume );
|
||||||
if( FAILED(hr) )
|
if( FAILED(hr) )
|
||||||
{
|
{
|
||||||
static bool bWarned = false;
|
static bool bWarned = false;
|
||||||
|
|||||||
Reference in New Issue
Block a user