MB: SSI263: Don't try to create DS soundbuffer if DS is unavailable

This commit is contained in:
tomcw
2024-11-23 14:25:09 +00:00
parent b5544142e0
commit a6416acb87
2 changed files with 6 additions and 0 deletions
+3
View File
@@ -184,6 +184,9 @@ HRESULT DSGetLock(LPDIRECTSOUNDBUFFER pVoice, DWORD dwOffset, DWORD dwBytes,
HRESULT DSGetSoundBuffer(VOICE* pVoice, DWORD dwFlags, DWORD dwBufferSize, DWORD nSampleRate, int nChannels, const char* pszDevName)
{
if (!g_lpDS)
return E_FAIL;
pVoice->name = pszDevName;
WAVEFORMATEX wavfmt;