mirror of
https://github.com/AppleWin/AppleWin.git
synced 2026-04-21 07:17:41 +00:00
MB: SSI263: Don't try to create DS soundbuffer if DS is unavailable
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user