Changeset 507
- Timestamp:
- Jul 11, 2010, 5:31:02 PM (15 years ago)
- Location:
- OCO/trunk
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
OCO/trunk/drv16/ssm_idc.cpp
r483 r507 33 33 extern "C" int open_strategy; 34 34 35 #ifdef DEBUG 36 unsigned long DbgU16IdcCnt = 0; 37 extern "C" void dumpheap(void); 38 #endif 39 35 40 extern "C" ULONG __far __loadds __cdecl DDCMD_EntryPoint(PDDCMDCOMMON pCommon) 36 41 { 37 ULONG ulReturnCode = NO_ERROR; 38 PSTREAM pstream=FindStream(pCommon->hStream); 42 ULONG ulReturnCode = NO_ERROR; 43 PSTREAM pstream=FindStream(pCommon->hStream); 44 45 if(!pstream && (pCommon->ulFunction != DDCMD_REG_STREAM)) { 46 dprintf(("DDCMD_EntryPoint: invalid stream handle %x for cmd %ld", (USHORT)pCommon->hStream, pCommon->ulFunction)); 47 return ERROR_INVALID_STREAM; 48 } 39 49 40 50 #ifdef DEBUG 41 if(pstream == NULL && pCommon->ulFunction != DDCMD_REG_STREAM) { 42 dprintf(("DDCMD_EntryPoint: invalid stream handle %x for cmd %ld", (USHORT)pCommon->hStream, pCommon->ulFunction)); 43 } 51 DbgU16IdcCnt++; 44 52 #endif 45 switch (pCommon->ulFunction) {46 53 47 case DDCMD_SETUP: { 48 ddprintf(("DDCMD_SETUP")); 49 if (!pstream) 50 { 51 dprintf(("DDCMD_SETUP err pstream")); 52 return ERROR_INVALID_STREAM; 53 } 54 PDDCMDSETUP p = (PDDCMDSETUP) pCommon; 55 SETUP_PARM __far *psp = (SETUP_PARM __far *) p->pSetupParm; 56 pstream->SetCurrentTime(psp->ulStreamTime); 54 switch (pCommon->ulFunction) { 55 case DDCMD_SETUP: { 56 PDDCMDSETUP p = (PDDCMDSETUP) pCommon; 57 SETUP_PARM __far *psp = (SETUP_PARM __far *) p->pSetupParm; 57 58 58 // if there is a flags field in the SETUP_PARM 59 // the tell MMPM it can send us 'RECURRING' events.... 60 if (p->ulSetupParmSize > sizeof(ULONG)) 61 { 59 dprintf(("DDCMD_SETUP")); 60 pstream->SetCurrentTime(psp->ulStreamTime); 61 62 // if there is a flags field in the SETUP_PARM 63 // the tell MMPM it can send us 'RECURRING' events.... 64 if (p->ulSetupParmSize > sizeof(ULONG)) { 62 65 // dprintf(("DDCMD_SETUP ParmSize %ld", p->ulSetupParmSize)); 63 64 65 66 67 68 ddprintf(("DDCMD_READ"));69 66 psp->ulFlags = SETUP_RECURRING_EVENTS; 67 } 68 break; 69 } 70 case DDCMD_READ: { 71 dprintf(("DDCMD_READ")); 72 PDDCMDREADWRITE p=(PDDCMDREADWRITE) pCommon; 70 73 71 if (!pstream) 72 return ERROR_INVALID_STREAM; 73 ulReturnCode = 74 pstream->Read((PSTREAMBUF) p->pBuffer,(unsigned) p->ulBufferSize); 75 if (ulReturnCode) 76 return ulReturnCode; 77 break; 78 } 79 // Task time 80 case DDCMD_WRITE: 81 { 82 PDDCMDREADWRITE p=(PDDCMDREADWRITE) pCommon; 74 ulReturnCode = pstream->Read((PSTREAMBUF) p->pBuffer,(unsigned) p->ulBufferSize); 75 break; 76 } 77 // Task time 78 case DDCMD_WRITE: { 79 PDDCMDREADWRITE p=(PDDCMDREADWRITE) pCommon; 83 80 84 if (!pstream) 85 { 86 dprintf(("DDCMD_WRITE err stream %x", (USHORT)pstream)); 87 return ERROR_INVALID_STREAM; 88 } 89 ulReturnCode = pstream->Write((PSTREAMBUF) p->pBuffer,(unsigned) p->ulBufferSize); 90 ddprintf(("DDCMD_WRITE %lx %lx rc=%ld", p->pBuffer, p->ulBufferSize, ulReturnCode)); 91 if (ulReturnCode) 92 return ulReturnCode; 93 break; 94 } 95 case DDCMD_STATUS: { 81 ulReturnCode = pstream->Write((PSTREAMBUF) p->pBuffer,(unsigned) p->ulBufferSize); 82 dprintf(("DDCMD_WRITE %lx %lx rc=%ld", p->pBuffer, p->ulBufferSize, ulReturnCode)); 83 break; 84 } 85 case DDCMD_STATUS: { 96 86 PDDCMDSTATUS p = (PDDCMDSTATUS) pCommon; 97 87 PSTATUS_PARM p2 = (PSTATUS_PARM) p->pStatus; 98 if (!pstream) 99 return ERROR_INVALID_STREAM; 88 100 89 p2->ulTime = pstream->GetCurrentTime(); 101 ddprintf(("DDCMD_STATUS time:%lx", p2->ulTime));90 //dprintf(("DDCMD_STATUS time:%lx", p2->ulTime)); 102 91 break; 103 } 104 case DDCMD_CONTROL: 105 { 106 PDDCMDCONTROL p = (PDDCMDCONTROL) pCommon; 107 if (!pstream) 108 { 109 dprintf(("DDCMD_CONTROL err stream %x", (USHORT)pstream)); 110 return ERROR_INVALID_STREAM; 111 } 92 } 93 case DDCMD_CONTROL: { 94 PDDCMDCONTROL p = (PDDCMDCONTROL) pCommon; 112 95 113 switch (p->ulCmd) 114 { 115 case DDCMD_START: 116 ddprintf(("DDCMD_START")); 117 ulReturnCode = pstream->StartStream(); 118 //ddprintf(("DDCMD_START End rc=%ld",ulReturnCode)); 119 return ulReturnCode; 120 case DDCMD_STOP: 121 ddprintf(("DDCMD_STOP")); 96 switch (p->ulCmd) { 97 case DDCMD_START: 98 dprintf(("DDCMD_START")); 99 ulReturnCode = pstream->StartStream(); 100 //dprintf(("DDCMD_START End rc=%ld",ulReturnCode)); 101 break; 102 case DDCMD_STOP: 103 dprintf(("DDCMD_STOP")); 122 104 //DevHelp_ProcBlock ((ULONG)p, 2, 0); 123 p->ulParmSize=sizeof(ULONG); 124 return pstream->StopStream((PCONTROL_PARM)p->pParm); 125 case DDCMD_PAUSE: 126 ddprintf(("DDCMD_PAUSE")); 127 p->ulParmSize=sizeof(ULONG); 128 return pstream->PauseStream((PCONTROL_PARM)p->pParm); 129 case DDCMD_RESUME: 130 ddprintf(("DDCMD_RESUME")); 131 return pstream->ResumeStream(); 132 case DDCMD_ENABLE_EVENT: 133 ddprintf(("DDCMD_ENABLE_EVENT")); 134 return pstream->EnableEvent(p); 135 case DDCMD_DISABLE_EVENT: 136 ddprintf(("DDCMD_DISABLE_EVENT")); 137 return pstream->DisableEvent(p); 138 case DDCMD_PAUSE_TIME: 139 ddprintf(("DDCMD_PAUSE_TIME")); 140 return pstream->PauseStreamTime(); 141 case DDCMD_RESUME_TIME: 142 ddprintf(("DDCMD_RESUME_TIME")); 143 return pstream->ResumeStreamTime(); 144 default: 145 ddprintf(("DDCMD INVALID REQUEST\n")); 146 return ERROR_INVALID_REQUEST; 147 } /* endswitch */ 148 } 149 case DDCMD_REG_STREAM: 150 { 151 ddprintf(("DDCMD_REG_STREAM size:%lx countbuf:%lx",((PDDCMDREGISTER) pCommon)->ulBufSize, ((PDDCMDREGISTER) pCommon)->ulNumBufs)); 152 if (pstream) 153 { 154 dprintf(("DDCMD_REG_STREAM err stream %x", (USHORT)pstream)); 155 return ERROR_HNDLR_REGISTERED; 156 } 157 pstream = FindStream_fromFile(((PDDCMDREGISTER) pCommon)->ulSysFileNum); 158 if (!pstream) 159 { 160 dprintf(("DDCMD_REG_STREAM1 err stream %x", (USHORT)pstream)); 161 return ERROR_STREAM_CREATION; 162 } 163 ulReturnCode = pstream->Register((PDDCMDREGISTER) pCommon); 164 if (ulReturnCode) 165 { 166 dprintf(("DDCMD_REG_STREAM err stream %x returned %d", (USHORT)pCommon->hStream, (USHORT)ulReturnCode)); 167 return ERROR_STREAM_CREATION; 168 } 169 ddprintf(("DDCMD_REG_STREAM end size:%lx countbuf:%lx",((PDDCMDREGISTER) pCommon)->ulBufSize, ((PDDCMDREGISTER) pCommon)->ulNumBufs)); 170 break; 171 } 172 case DDCMD_DEREG_STREAM: 173 ddprintf(("DDCMD_DEREG_STREAM")); 174 if (!pstream) 175 return ERROR_INVALID_STREAM; 176 if ((USHORT)pCommon->hStream == 1) 177 open_strategy = 1UL; // close it really 178 pstream->DeRegister(); 179 //dprintf(("DDCMD_EntryPoint: DDCMD_DEREG_STREAM stream %x, %ld", (USHORT)pCommon->hStream, open_strategy)); 180 break; 181 default: 182 ddprintf(("INVALID DDCMD\n")); 183 return ERROR_INVALID_FUNCTION; 184 } 105 p->ulParmSize=sizeof(ULONG); 106 ulReturnCode = pstream->StopStream((PCONTROL_PARM)p->pParm); 107 break; 108 case DDCMD_PAUSE: 109 dprintf(("DDCMD_PAUSE")); 110 p->ulParmSize=sizeof(ULONG); 111 ulReturnCode = pstream->PauseStream((PCONTROL_PARM)p->pParm); 112 break; 113 case DDCMD_RESUME: 114 dprintf(("DDCMD_RESUME")); 115 ulReturnCode = pstream->ResumeStream(); 116 break; 117 case DDCMD_ENABLE_EVENT: 118 dprintf(("DDCMD_ENABLE_EVENT")); 119 ulReturnCode = pstream->EnableEvent(p); 120 break; 121 case DDCMD_DISABLE_EVENT: 122 dprintf(("DDCMD_DISABLE_EVENT")); 123 ulReturnCode = pstream->DisableEvent(p); 124 break; 125 case DDCMD_PAUSE_TIME: 126 dprintf(("DDCMD_PAUSE_TIME")); 127 ulReturnCode = pstream->PauseStreamTime(); 128 break; 129 case DDCMD_RESUME_TIME: 130 dprintf(("DDCMD_RESUME_TIME")); 131 ulReturnCode = pstream->ResumeStreamTime(); 132 break; 133 default: 134 rprintf(("DDCMD INVALID REQUEST\n")); 135 ulReturnCode = ERROR_INVALID_REQUEST; 136 break; 137 } /* endswitch */ 138 break; 139 } 140 case DDCMD_REG_STREAM: { 141 dprintf(("DDCMD_REG_STREAM size:%lx countbuf:%lx",((PDDCMDREGISTER) pCommon)->ulBufSize, ((PDDCMDREGISTER) pCommon)->ulNumBufs)); 142 if (pstream) { 143 dprintf(("DDCMD_REG_STREAM err stream %x", (USHORT)pstream)); 144 ulReturnCode = ERROR_HNDLR_REGISTERED; 145 break; 146 } 147 pstream = FindStream_fromFile(((PDDCMDREGISTER) pCommon)->ulSysFileNum); 148 if (!pstream) { 149 dprintf(("DDCMD_REG_STREAM1 err stream %x", (USHORT)pstream)); 150 ulReturnCode = ERROR_STREAM_CREATION; 151 break; 152 } 153 ulReturnCode = pstream->Register((PDDCMDREGISTER) pCommon); 154 if (ulReturnCode) { 155 dprintf(("DDCMD_REG_STREAM err stream %x returned %d", (USHORT)pCommon->hStream, (USHORT)ulReturnCode)); 156 ulReturnCode = ERROR_STREAM_CREATION; 157 break; 158 } 159 //dprintf(("DDCMD_REG_STREAM end size:%lx countbuf:%lx",((PDDCMDREGISTER) pCommon)->ulBufSize, ((PDDCMDREGISTER) pCommon)->ulNumBufs)); 160 break; 161 } 162 case DDCMD_DEREG_STREAM: 163 dprintf(("DDCMD_DEREG_STREAM")); 164 if ((USHORT)pCommon->hStream == 1) open_strategy = 1UL; // close it really 165 pstream->DeRegister(); 166 //dprintf(("DDCMD_EntryPoint: DDCMD_DEREG_STREAM stream %x, %ld", (USHORT)pCommon->hStream, open_strategy)); 167 break; 168 default: 169 rprintf(("INVALID DDCMD\n")); 170 ulReturnCode = ERROR_INVALID_FUNCTION; 171 break; 172 } 185 173 186 return NO_ERROR; 174 #ifdef DEBUG 175 DbgU16IdcCnt--; 176 #endif 177 return ulReturnCode; 187 178 } -
OCO/trunk/drv16/stream.cpp
r483 r507 66 66 shdri.pBuffer = temp->pBuffptr; 67 67 shdri.ulStreamTime = GetCurrentTime(); 68 //ddprintf(("Returning %lx Time=%lx", temp->pBuffptr, shdri.ulStreamTime)); 68 //dprintf(("Returning %lx Time=%lx", temp->pBuffptr, shdri.ulStreamTime)); 69 //dprintf(("Returning %lx", temp->pBuffptr)); 69 70 pfnSHD(&shdri); 70 71 delete temp; … … 174 175 ULONG STREAM::Register(PDDCMDREGISTER p) 175 176 { 176 // d dprintf(("STREAM::Register"));177 // dprintf(("STREAM::Register")); 177 178 hstream = p->hStream; 178 179 pfnSHD = (PFN_SHD) p->pSHDEntryPoint; -
OCO/trunk/drv16/waveplay.cpp
r495 r507 46 46 ULONG open_strategy = 0UL; 47 47 ULONG LastSpace=0; 48 //int force_close(void);48 //int force_close(void); 49 49 } 50 50 … … 60 60 { 61 61 ULONG ret; 62 #ifdef DEBUG 63 // dprintf(("WAVEPLAY::Open %lx",StreamId)); 64 #endif 62 //dprintf(("WAVEPLAY::Open %lx",StreamId)); 65 63 if (fAPMSuspend) 66 64 { 67 #ifdef DEBUG 68 // dprintf(("WAVEPLAY::Open. Suspend state")); 69 #endif 65 //dprintf(("WAVEPLAY::Open. Suspend state")); 70 66 apm_resume(); 71 //return FALSE;72 67 } 73 68 … … 76 71 if((ret = OSS16_WaveOpen(ulDevice, ulStreamType, ulSysFileNum, pStreamId)) != OSSERR_SUCCESS) 77 72 { 78 #ifdef DEBUG79 73 dprintf(("OSS16_WaveOpen failed!!")); 80 #endif81 74 DebugInt3(); 82 //StreamId = 0;83 //waveOpened = 0;75 //StreamId = 0; 76 //waveOpened = 0; 84 77 return FALSE; 85 78 } else … … 106 99 BOOL WAVEPLAY::Close(OSSSTREAMID StreamIdl) 107 100 { 108 #ifdef DEBUG 109 // dprintf(("WAVEPLAY::Close stream: %lx, %lx, os: %lx", StreamId, waveOpened,open_strategy)); 110 #endif 101 //dprintf(("WAVEPLAY::Close stream: %lx, %lx, os: %lx", StreamId, waveOpened,open_strategy)); 111 102 #if 0 // fixme to be gone? 112 103 //if ((open_strategy & 1)) … … 118 109 open_strategy = 0UL; 119 110 force_closed = 0; 120 #ifdef DEBUG 121 // dprintf(("WAVEPLAY::Closed stream: %lx, %lx, os: %lx", StreamId, waveOpened,open_strategy)); 122 #endif 111 //dprintf(("WAVEPLAY::Closed stream: %lx, %lx, os: %lx", StreamId, waveOpened,open_strategy)); 123 112 return TRUE; 124 113 } … … 126 115 #endif // fixme to be gone? 127 116 { 128 129 117 /* Setting DISABLE_STREAM_REUSE will close the open stream here. */ 130 118 /* If left unset, the idea is the open stream will be reused instead. */ … … 139 127 StreamId = 0UL; 140 128 open_strategy = 0UL; 141 #ifdef DEBUG 142 // dprintf(("OSS16_WAVECLOSE: Success")); 143 #endif /* DEBUG */ 129 dprintf(("OSS16_WAVECLOSE: Success")); 144 130 return TRUE; 145 } else 146 #ifdef DEBUG 131 } else { 147 132 dprintf(("OSS16_WAVECLOSE: Error")); 148 #endif /* DEBUG */149 133 return FALSE; 134 } 150 135 } 151 136 else 152 137 #else /* !DISABLE_STREAM_REUSE */ 153 if (StreamIdl == NULL) 154 return FALSE; 138 if (StreamIdl == NULL) return FALSE; 155 139 #endif /* DISABLE_STREAM_REUSE */ 156 140 return TRUE; … … 170 154 if (fAPMSuspend) 171 155 { 172 #ifdef DEBUG 173 // dprintf(("WAVEPLAY::ConfigDev. Suspend state")); 174 #endif 156 //dprintf(("WAVEPLAY::ConfigDev. Suspend state")); 175 157 apm_resume(); 176 //return FALSE;177 158 } 178 159 … … 182 163 if (StreamId == NULL) 183 164 { 184 #ifdef DEBUG185 165 dprintf(("WAVEPLAY::ConfigDev. Error reopening stream")); 186 #endif187 166 return FALSE; 188 167 } 189 168 } 190 #ifdef DEBUG191 169 dprintf4(("WAVEPLAY::ConfigDev SampleRate %ld", pConfigInfo->ulHwSampleRate)); 192 170 dprintf4(("WAVEPLAY::ConfigDev ulFirstBufSize=%lx ulFragsize=%lx", ulFirstBufSize, pConfigInfo->ulFragsize)); 193 #endif194 171 195 172 if(ulFirstBufSize == 0) … … 200 177 DebugInt3(); 201 178 ulFirstBufSize = 8192; //should never happen! 202 #ifdef DEBUG203 179 dprintf(("Arg - shouldn't happen")); 204 #endif /* DEBUG */205 180 } 206 181 } … … 209 184 //convert size of first buffer 210 185 ulFirstBufSize = ConvertLength(ulFirstBufSize, pConfigInfo); 211 #ifdef DEBUG212 186 dprintf4(("ulFirstBufSize %lx", ulFirstBufSize)); 213 #endif /* DEBUG */214 187 } 215 188 //Must call this method (i.e. resets sample rate conversion position) … … 221 194 //convert consume rate 222 195 ulPCMConsumeRate = ConvertLength(pConfigInfo->ulPCMConsumeRate, pConfigInfo); 223 #ifdef DEBUG224 196 dprintf4(("cons rate %lx buf size %lx init rate %ld", ulPCMConsumeRate, ulFirstBufSize, pConfigInfo->ulHwSampleRate)); 225 #endif /* DEBUG */226 197 227 198 fragsize = ulPCMConsumeRate/64; //start with 64 irqs/sec 2756 … … 250 221 pConfigInfo->ulFragsize = fragsize; 251 222 252 #ifdef DEBUG253 223 dprintf4(("fragsize %lx", fragsize)); 254 #endif255 224 hwparam.ulSampleRate = pConfigInfo->ulHwSampleRate; 256 225 hwparam.ulBitsPerSample = pConfigInfo->ulHwBitsPerSample; … … 258 227 hwparam.ulDataType = QueryOSSDataFormat(OPERATION_PLAY, pConfigInfo->ulDataType, pConfigInfo->ulHwBitsPerSample); 259 228 rc = (USHORT)OSS16_WaveSetFormat(StreamId, &hwparam); 260 #ifdef DEBUG261 229 dprintf4(("WAVEPLAY:ConfigDev:OSS16_WaveSetFormat . rc = %d",rc)); 262 230 dprintf4(("samp rate=%ld bps=%ld channels=%ld type=%ld", hwparam.ulSampleRate, hwparam.ulBitsPerSample, hwparam.ulNumChannels, hwparam.ulDataType)); 263 231 264 #endif265 232 if( rc != OSSERR_SUCCESS) { 266 233 dprintf(("WAVEPLAY:ConfigDev: rc %d",rc)); … … 276 243 //****************************************************************************** 277 244 //Convert (if required) and write wave data to audio device 245 // Return FALSE on error 278 246 //****************************************************************************** 279 247 BOOL WAVEPLAY::Transfer(OSSSTREAMID StreamId, PWAVECONFIGINFO pConfigInfo, … … 283 251 *pulBytesTransferred = 0; 284 252 285 #ifdef DEBUG286 253 //dprintf(("WAVEPLAY::Transfer %ld",ulBytesToTransfer)); 287 #endif 288 289 if (fAPMSuspend) 290 { 291 #ifdef DEBUG 292 // dprintf(("WAVEPLAY::Transfer. Suspend state")); 293 #endif 254 255 if (fAPMSuspend) { 256 //dprintf(("WAVEPLAY::Transfer. Suspend state")); 294 257 apm_resume(); 295 //return FALSE; 296 } 297 298 //PS very strange 299 if (!ulBytesToTransfer) 300 { 258 } 259 260 if (!ulBytesToTransfer) { 301 261 return TRUE; 302 262 } 303 263 304 //if (!waveOpened) return TRUE;264 //if (!waveOpened) return TRUE; 305 265 306 266 if(pConfigInfo->usConversion == CONVERT_NONE) … … 308 268 if (AddBuffer(StreamId, pConfigInfo, pUserBuffer, ulBytesToTransfer, pulBytesTransferred) == FALSE) 309 269 { 310 #ifdef DEBUG311 270 dprintf(("Transfer.False. NoConv ulB %ld tr:%ld",ulBytesToTransfer,*pulBytesTransferred)); 312 #endif /* DEBUG */313 271 *pulBytesTransferred = 0; 314 272 return FALSE; … … 331 289 { 332 290 dprintf(("Transfer New ulBr %ld" , ulBytesToTransfer)); 333 //DebugInt3();291 //DebugInt3(); 334 292 ulBytesToTransfer = ulBytesToTransfer & ~(pConfigInfo->ulSampleSize-1); 335 #ifdef DEBUG336 293 dprintf(("Transfer New ulBr %ld" , ulBytesToTransfer)); 337 #endif338 294 } 339 295 pConfigInfo->pfnConvert(pUserBuffer, ulBytesToTransfer, pConfigInfo->pConversionBuffer); … … 347 303 if(*pulBytesTransferred & (pConfigInfo->ulSampleSize-1)) 348 304 { 349 #ifdef DEBUG350 305 dprintf(("Transfer New pulBr %ld" , pulBytesTransferred)); 351 #endif 352 // DebugInt3(); 306 //DebugInt3(); 353 307 } 354 308 } … … 356 310 { 357 311 dprintf(("Transfer Zero pConfigInfo->pfnConvert")); 358 //DebugInt3();312 //DebugInt3(); 359 313 return FALSE; 360 314 } … … 370 324 OSSRET rc; 371 325 ULONG Space; 372 // if (!waveOpened) return TRUE; 373 374 //PS Here is inrerrupt time.... 375 if (fAPMSuspend) 376 { 377 #ifdef DEBUG 378 // dprintf(("WAVEPLAY::AddBuffer. Suspend state")); 379 #endif 326 //if (!waveOpened) return TRUE; 327 328 //PS Here is inrerrupt time.... 329 if (fAPMSuspend) { 330 //dprintf(("WAVEPLAY::AddBuffer. Suspend state")); 380 331 apm_resume(); 381 332 //return FALSE; … … 407 358 if (ulCvtBufferSize > Space) 408 359 { 409 #ifdef DEBUG410 360 dprintf(("WPLAY::AddBuffer need %ld space:%ld", ulCvtBufferSize, Space)); 411 #endif412 361 if (Space < pConfigInfo->ulBytesPerIRQ) 413 362 { … … 482 431 if(OSS16_WaveGetPos(StreamId, &ulCurBytesProcessed) != OSSERR_SUCCESS) { 483 432 *pulStreamPosition = 0; 484 #ifdef DEBUG485 433 dprintf(("WAVEPLAY::GetPosition: Failed")); 486 #endif /* DEBUG */487 434 return FALSE; 488 435 } … … 505 452 { 506 453 *pulStreamSpace = 0; 507 #ifdef DEBUG508 454 dprintf(("WAVEPLAY::GetSpace: Failed")); 509 #endif /* DEBUG */510 455 return FALSE; 511 456 } … … 527 472 { 528 473 *pulHwPtr = 0; 529 #ifdef DEBUG530 474 dprintf(("WAVEPLAY::WaveGetHwPtr: Failed")); 531 #endif /* DEBUG */532 475 return FALSE; 533 476 } -
OCO/trunk/include/dbgos2.h
r496 r507 19 19 #endif 20 20 21 /* rprintf is used to output info to the log for the retail version */ 22 #define rprintf(a) PrintfOut a 23 24 /* dprintf is used to output info into the log for the debug version */ 21 25 #ifdef DEBUG 22 #define dprintf(a) if(dbglevel >= 1) PrintfOut a 26 #define dprintf(a) PrintfOut a 27 #define dprintf1(a) if(dbglevel >= 1) PrintfOut a 23 28 #define dprintf2(a) if(dbglevel >= 2) PrintfOut a 24 29 #define dprintf3(a) if(dbglevel >= 3) PrintfOut a 25 30 #define dprintf4(a) if(dbglevel >= 4) PrintfOut a 26 31 #else 27 #define dprintf(a) //if(dbglevel >= 1) PrintfOut a 28 #define dprintf2(a) //if(dbglevel >= 2) PrintfOut a 29 #define dprintf3(a) //if(dbglevel >= 3) PrintfOut a 30 #define dprintf4(a) //if(dbglevel >= 4) PrintfOut a 32 #define dprintf(a) // 33 #define dprintf1(a) // 34 #define dprintf2(a) // 35 #define dprintf3(a) // 36 #define dprintf4(a) // 31 37 #endif 32 38
Note:
See TracChangeset
for help on using the changeset viewer.