wasapi: switched to event-driven interface.

This reduces latency and improves battery life.
This commit is contained in:
Ryan C. Gordon
2017-12-13 14:35:55 -05:00
parent 988034fcc7
commit ab4695f48f
2 changed files with 33 additions and 9 deletions

View File

@@ -45,6 +45,7 @@ struct SDL_PrivateAudioData
IAudioRenderClient *render;
IAudioCaptureClient *capture;
SDL_AudioStream *capturestream;
HANDLE event;
HANDLE task;
SDL_bool coinitialized;
int framesize;