Ken Thomases : winecoreaudio: Store the device ID in the WINE_WAVEOUT structure.

Alexandre Julliard julliard at wine.codeweavers.com
Fri Dec 29 06:47:21 CST 2006


Module: wine
Branch: master
Commit: 19c75a4ec6228d1f23b2dfa477b6c2cd16337ca3
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=19c75a4ec6228d1f23b2dfa477b6c2cd16337ca3

Author: Ken Thomases <ken at codeweavers.com>
Date:   Thu Dec 28 11:06:35 2006 -0600

winecoreaudio: Store the device ID in the WINE_WAVEOUT structure.

---

 dlls/winmm/winecoreaudio/audio.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/dlls/winmm/winecoreaudio/audio.c b/dlls/winmm/winecoreaudio/audio.c
index 4389bc1..2a13f8d 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-cvs mailing list