Skip to content

Commit

Permalink
check if ahi_dev exists in setvolume_ahi
Browse files Browse the repository at this point in the history
  • Loading branch information
midwan committed Dec 31, 2020
1 parent 9c7d097 commit ea4a42b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/osdep/ahi_v1.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -225,10 +225,10 @@ static int ahi_init_record_win32 (void)

void setvolume_ahi (int vol)
{
#if 0
HRESULT hr;
if (!lpDS2)
//HRESULT hr;
if (!ahi_dev)
return;
#if 0
hr = IDirectSoundBuffer_SetVolume(lpDSB2, vol);
if (FAILED(hr))
write_log(_T("AHI: SetVolume(%d) failed: %s\n"), vol, DXError(hr));
Expand Down

0 comments on commit ea4a42b

Please # to comment.