Commit 19c75a4e authored by Ken Thomases's avatar Ken Thomases Committed by Alexandre Julliard

winecoreaudio: Store the device ID in the WINE_WAVEOUT structure.

parent 127523d7
......@@ -158,6 +158,9 @@ typedef struct {
} WINE_WAVEOUT;
typedef struct {
/* This device's device number */
DWORD wiID;
/* Access to the following fields is synchronized across threads. */
volatile int state;
LPWAVEHDR lpQueuePtr;
......@@ -534,6 +537,7 @@ LONG CoreAudio_WaveInit(void)
for (i = 0; i < MAX_WAVEINDRV; ++i)
{
memset(&WInDev[i], 0, sizeof(WInDev[i]));
WInDev[i].wiID = i;
/* Establish preconditions for widOpen */
WInDev[i].state = WINE_WS_CLOSED;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment