Revert "DSound: use DSound notifications to produce sound."

This reverts commit 4990b8910b.

The commit is causing substantial performance issues for the DSound
backend which I somehow didn't catch during testing.
This commit is contained in:
magumagu
2014-05-31 13:35:46 -07:00
parent d0201335c6
commit 87a804fdfc
2 changed files with 11 additions and 20 deletions

View File

@ -13,14 +13,14 @@
#include <mmsystem.h>
#include <dsound.h>
#define BUFSIZE (256 * 8 * 4)
#define BUFSIZE (1024 * 8 * 4)
#endif
class DSound final : public SoundStream
{
#ifdef _WIN32
std::thread thread;
HANDLE soundSyncEvent;
Common::Event soundSyncEvent;
void *hWnd;
IDirectSound8* ds;
@ -66,6 +66,7 @@ public:
virtual void Stop();
virtual void Clear(bool mute);
static bool isValid() { return true; }
virtual void Update();
#else
public: