Changeset 529
- Timestamp:
- Jul 27, 2010, 6:28:57 PM (15 years ago)
- Location:
- OCO/trunk
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
OCO/trunk/drv16/ioctl.cpp
r526 r529 227 227 p->ulSamplingRate = HZ_44100; 228 228 // 229 rprintf(("IACapability: Error support"));229 //dprintf(("IACapability: Error support")); 230 230 prp->usStatus |= RPERR; 231 231 } -
OCO/trunk/drv16/wavestrm.cpp
r526 r529 160 160 ULONG WAVESTREAM::_vUnderrunStart(void) 161 161 { 162 if (ulStreamState == STREAM_STREAMING) return 0;162 // if (ulStreamState == STREAM_STREAMING) return 0; 163 163 rprintf(("Underrun-start")); 164 PSTREAMBUFFER pTemp = (PSTREAMBUFFER)qhInProcess.Head();164 // PSTREAMBUFFER pTemp = (PSTREAMBUFFER)qhInProcess.Head(); 165 165 // if(pahw->ConfigDev(StreamId, &_configinfo, (pTemp) ? pTemp->ulBuffsz : 0) == FALSE) { 166 166 // rprintf(("WS::Write: ConfigDev failed")); … … 198 198 ULONG ulStatus; 199 199 200 //dprintf(("WS:AddBuffers First=%d, SampleSize=%lx", sFirst, _configinfo.ulSampleSize));201 200 202 201 if (sAddBuffersInProcess) { … … 223 222 } 224 223 ulSpace &= (~(_configinfo.ulSampleSize - 1)); 225 #if 1226 /* DAZ testing -- underrun detection*/224 #if 0 225 /* DAZ testing -- driver error and stopped */ 227 226 if (ulSpace == 0) { 228 OSS16_WaveGetStatus(StreamId, &ulStatus); 229 rprintf(("WS::ABS ulSpace=0 state=%lx u32status=%lx", ulStreamState, ulStatus)); 230 231 _vUnderrunStop("WS:ABS"); 227 rprintf(("WS:AddBuffers Space=0")); 232 228 _vUnderrunStart(); 233 229 … … 376 372 void DBGCALLCONV WAVESTREAM::Process(void) 377 373 { 378 PSTREAMBUFFER pTemp;379 ULONG ulBytes;380 ULONG ulDAZ;381 382 //dprintf(("WAVESTREAM::Process Start"));383 384 // get the stream position. if we get a bad rc or the position is 0385 // then we bail out. Hopefully this will be better next time.386 // GetPostiion returns the adjusted hw pointer from the ALSA status ioctl387 // This is really a running total of bytes consumed by the hardware.388 // DAZ - Note that this is a 32 bit counter and will wrap at sometime. ALSA389 // attempts to wrap this counter intelligently. I haven't determined what390 // effect, if any, the wrapping of this counter will have playing a stream.391 if(pahw->GetPosition(StreamId, &_configinfo, &ulBytes) == FALSE)392 {393 //dprintf(("Error No bytes processed"));394 DebugInt3();395 return;396 }397 _ulBytesProcessed = ulBytes;398 399 374 switch (ulStreamType & STREAM_WRITE) 400 375 { 401 376 case STREAM_WRITE: 377 { 378 PSTREAMBUFFER pTemp; 379 ULONG ulBytes; 380 381 // get the stream position. if we get a bad rc or the position is 0 382 // then we bail out. Hopefully this will be better next time. 383 // GetPostiion returns the adjusted hw pointer from the ALSA status ioctl 384 // This is really a running total of bytes consumed by the hardware. 385 // DAZ - Note that this is a 32 bit counter and will wrap at sometime. ALSA 386 // attempts to wrap this counter intelligently. I haven't determined what 387 // effect, if any, the wrapping of this counter will have playing a stream. 388 if(pahw->GetPosition(StreamId, &_configinfo, &ulBytes) == FALSE) { 389 //dprintf(("Error No bytes processed")); 390 DebugInt3(); 391 return; 392 } 393 _ulBytesProcessed = ulBytes; 394 402 395 if(!qhInProcess.IsElements() && !qhDone.IsElements()) { 396 //Application underrun 403 397 _vUnderrunStop("WS:Process"); 404 398 break; … … 422 416 } 423 417 break; 418 } 424 419 case STREAM_READ: 420 { 421 ULONG ulDAZ; 422 425 423 ulDAZ = 0; 426 424 while(_vReadAudioBuf()) { 427 if (ulDAZ++ > 20) { /* temporary hack to prevent hangs when uniaud32 stops (overruns)*/425 if (ulDAZ++ > 20) { /* temporary hack to prevent hangs if uniaud32 stops */ 428 426 rprintf(("WS::Process Read DAZ Break")); 429 427 break; … … 431 429 } 432 430 break; 431 } 433 432 default: 434 433 break; … … 436 435 437 436 ProcessEvents(); 438 //dprintf(("WAVESTREAM::Process End"));439 437 } 440 438 //****************************************************************************** … … 444 442 #pragma on (unreferenced) 445 443 { 446 PSTREAMBUFFER pStreamBuf = new STREAMBUFFER(uLength, pbuf); 444 PSTREAMBUFFER pStreamBuf; 445 pStreamBuf = new STREAMBUFFER(uLength, pbuf); 447 446 448 447 return Write(pStreamBuf); … … 453 452 { 454 453 455 #if 1456 ULONG ulStatus;457 458 ulStatus = 0;459 if (OSS16_WaveGetStatus(StreamId, &ulStatus) != OSSERR_SUCCESS) ulStatus = SNDRV_PCM_STATE_XRUN;460 //dprintf(("WS::Write: status=%lx", ulStatus));461 if (ulStatus == SNDRV_PCM_STATE_XRUN) {462 rprintf(("WS::Write: Xrun detect"));463 _vUnderrunStop("WS:Write");464 fUnderrun = TRUE;465 }466 #endif467 454 qhInProcess.PushOnTail((PQUEUEELEMENT)pStreamBuf); 468 455 if (fUnderrun) { … … 686 673 pahw->Stop(StreamId); 687 674 688 #if 0689 /* DAZ test code begin */690 if (pahw->GetPosition(StreamId, &_configinfo, &ulEndPos2) == FALSE) ulEndPos2 = 0;691 if (ulEndPos2 != ulEndPos) {692 dprintf(("WS::PauseStream %lx!=%lx", ulEndPos, ulEndPos2));693 if (ulEndPos2) ulEndPos = ulEndPos2;694 }695 /* DAZ test code end */696 #endif697 698 675 ulStreamState = STREAM_PAUSED; 699 676 -
OCO/trunk/install/control.scr
r526 r529 25 25 ssgroup=0 26 26 ssname="mmbase" 27 ssversion="1.9. 3-SVNr526"27 ssversion="1.9.4-SVNr529" 28 28 sstermdll="ITERM.DLL" 29 29 sstermdllentry="ITermEntry" … … 43 43 ssgroup=17 44 44 ssname="OS/2 Universal Audio: Wave" 45 ssversion="1.9. 3-SVNr526"45 ssversion="1.9.4-SVNr529" 46 46 sssize=680 47 47 ssdll="genin.dll" -
OCO/trunk/uniaud.inc
r526 r529 7 7 # BUILDVERSION must be 3 parts, and only numbers like 5.44.108 8 8 # It is best that 2nd number is always 2 digits, eg at least 10 9 BUILDVERSION = 1.9. 39 BUILDVERSION = 1.9.4 10 10 11 11 # Fixpack version … … 13 13 # ex RC3 GA FIXPACK2 beta_47 14 14 # Comment out to avoid a fixpack line in bldlevel 15 FIXPACK = SVNr52 615 FIXPACK = SVNr529 16 16 17 17 # ALSA BUILD VERSION
Note:
See TracChangeset
for help on using the changeset viewer.