[11/18] winecoreaudio: Store the device ID in the WINE_WAVEOUT structure.

Ken Thomases ken at codeweavers.com
Thu Dec 28 11:06:35 CST 2006


-------------- next part --------------
diff --git a/dlls/winmm/winecoreaudio/audio.c b/dlls/winmm/winecoreaudio/audio.c
index 1142994..7d9aa38 100644
--- a/dlls/winmm/winecoreaudio/audio.c
+++ b/dlls/winmm/winecoreaudio/audio.c
@@ -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;



More information about the wine-patches mailing list