fix crashes when dsound devices go disabled
This commit is contained in:
parent
88f874f123
commit
02c72a663a
|
@ -117,6 +117,8 @@ namespace BizHawk.Client.EmuHawk
|
|||
|
||||
public int CalculateSamplesNeeded()
|
||||
{
|
||||
if (_deviceBuffer.Status == BufferStatus.BufferLost) return 0;
|
||||
|
||||
long currentWriteTime = Stopwatch.GetTimestamp();
|
||||
int playCursor = _deviceBuffer.CurrentPlayPosition;
|
||||
int writeCursor = _deviceBuffer.CurrentWritePosition;
|
||||
|
|
Binary file not shown.
Loading…
Reference in New Issue