- Timestamp:
- Jan 14, 2003, 8:38:38 PM (23 years ago)
- Location:
- trunk/src/winmm
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/winmm/dbgwrap.cpp
r9296 r9671 156 156 DEBUGWRAP8(timeGetDevCaps) 157 157 DEBUGWRAP8(timeGetSystemTime) 158 DEBUGWRAP 0(timeGetTime)158 DEBUGWRAP_LVL2_0(timeGetTime) 159 159 DEBUGWRAP4(timeKillEvent) 160 160 DEBUGWRAP20(timeSetEvent) -
trunk/src/winmm/initwinmm.cpp
r8857 r9671 1 /* $Id: initwinmm.cpp,v 1.1 0 2002-07-12 08:59:24sandervl Exp $1 /* $Id: initwinmm.cpp,v 1.11 2003-01-14 19:38:37 sandervl Exp $ 2 2 * 3 3 * WINMM DLL entry point … … 183 183 184 184 case DLL_PROCESS_DETACH: 185 WaveInOut::shutdown(); 185 186 MULTIMEDIA_DeleteIData(); 186 187 auxOS2Close(); /* Close aux device if necessary */ -
trunk/src/winmm/waveinoutbase.cpp
r8202 r9671 1 /* $Id: waveinoutbase.cpp,v 1. 4 2002-04-07 14:36:31sandervl Exp $ */1 /* $Id: waveinoutbase.cpp,v 1.5 2003-01-14 19:38:38 sandervl Exp $ */ 2 2 3 3 /* … … 35 35 #include "dbglocal.h" 36 36 37 VMutex wavemutex; 37 38 38 39 /******************************************************************************/ … … 55 56 State = STATE_STOPPED; 56 57 57 w mutex.enter();58 wavemutex.enter(); 58 59 59 if( wave== NULL) {60 wave= this;60 if(head == NULL) { 61 head = this; 61 62 } 62 63 else { 63 WaveInOut *dwave = wave;64 WaveInOut *dwave = head; 64 65 65 66 while(dwave->next) { … … 68 69 dwave->next = this; 69 70 } 70 w mutex.leave();71 wavemutex.leave(); 71 72 72 73 this->fdwOpen = fdwOpen; … … 78 79 WaveInOut::~WaveInOut() 79 80 { 80 w mutex.enter();81 wavemutex.enter(); 81 82 82 83 State = STATE_STOPPED; 83 84 84 if( wave== this) {85 wave= this->next;85 if(head == this) { 86 head = this->next; 86 87 } 87 88 else { 88 WaveInOut *dwave = wave;89 WaveInOut *dwave = head; 89 90 90 91 while(dwave->next != this) { … … 93 94 dwave->next = this->next; 94 95 } 95 w mutex.leave();96 wavemutex.leave(); 96 97 } 97 98 /******************************************************************************/ … … 146 147 } 147 148 /******************************************************************************/ 149 //Delete all active wave objects 150 /******************************************************************************/ 151 void WaveInOut::shutdown() 152 { 153 dprintf(("WaveInOut::shutdown")); 154 wavemutex.enter(); 155 while(head) { 156 delete head; 157 } 158 wavemutex.leave(); 159 dprintf(("WaveInOut::shutdown end")); 160 } 161 /******************************************************************************/ 148 162 /******************************************************************************/ 149 163 BOOL WaveInOut::find(WaveInOut *dwave) 150 164 { 151 WaveInOut *curwave = wave; 165 wavemutex.enter(); 166 167 WaveInOut *curwave = head; 152 168 153 169 while(curwave) { 154 170 if(dwave == curwave) { 171 wavemutex.leave(); 155 172 return(TRUE); 156 173 } 157 174 curwave = curwave->next; 158 175 } 176 wavemutex.leave(); 159 177 160 178 dprintf2(("WINMM:WaveInOut not found!\n")); … … 163 181 /******************************************************************************/ 164 182 /******************************************************************************/ 165 WaveInOut *WaveInOut:: wave= NULL;183 WaveInOut *WaveInOut::head = NULL; 166 184 -
trunk/src/winmm/waveinoutbase.h
r8572 r9671 1 /* $Id: waveinoutbase.h,v 1. 2 2002-06-05 11:05:56sandervl Exp $ */1 /* $Id: waveinoutbase.h,v 1.3 2003-01-14 19:38:38 sandervl Exp $ */ 2 2 3 3 /* … … 36 36 37 37 static BOOL find(WaveInOut *wave); 38 static void shutdown(); 38 39 39 40 protected: … … 57 58 *curhdr; 58 59 59 VMutex wmutex; 60 VMutex wmutex; 61 62 private: 60 63 // Linked list management 61 64 WaveInOut *next; // Next wave class 62 static WaveInOut *wave; // List of wave classes 63 64 private: 65 65 static WaveInOut *head; // List of wave classes 66 66 }; 67 67
Note:
See TracChangeset
for help on using the changeset viewer.