- Fixed a few bugs with ringbuffer, and some cleanup.

- Reworked audio system to use semaphores instead of events for waiting.
  Should fix rare issues where the XAudio2 driver would run out of buffers
  even though it was supposed to be guarded against that.
This commit is contained in:
gibbed
2015-06-19 21:48:51 -05:00
parent f3547a832f
commit edbd724370
8 changed files with 118 additions and 111 deletions

View File

@@ -24,7 +24,7 @@ class XAudio2AudioSystem : public AudioSystem {
XAudio2AudioSystem(Emulator* emulator);
virtual ~XAudio2AudioSystem();
virtual X_RESULT CreateDriver(size_t index, HANDLE wait,
virtual X_RESULT CreateDriver(size_t index, HANDLE semaphore,
AudioDriver** out_driver);
virtual void DestroyDriver(AudioDriver* driver);