Skip to content

Commit

Permalink
Fix DirectX playback
Browse files Browse the repository at this point in the history
  • Loading branch information
drfiemost committed Mar 19, 2023
1 parent d4283bb commit e655980
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/audio/directx/audiodrv.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -205,6 +205,9 @@ bool Audio_DirectX::write (uint_least32_t size)
setError("Device not open.");
return false;
}

size *= 2;

// Unlock the current buffer for playing
lpDsb->Unlock (lpvData, size, NULL, 0);

Expand Down

0 comments on commit e655980

Please sign in to comment.