Changeset 3330 for trunk/src/winmm/dwaveout.cpp
- Timestamp:
- Apr 6, 2000, 11:11:10 PM (25 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/winmm/dwaveout.cpp
r3326 r3330 1 /* $Id: dwaveout.cpp,v 1.2 0 2000-04-06 12:04:29sandervl Exp $ */1 /* $Id: dwaveout.cpp,v 1.21 2000-04-06 21:11:10 sandervl Exp $ */ 2 2 3 3 /* … … 500 500 MMRESULT DartWaveOut::restart() 501 501 { 502 int i, curbuf; 503 502 504 dprintf(("DartWaveOut::restart")); 503 505 wmutex->enter(VMUTEX_WAIT_FOREVER); 504 506 State = STATE_PLAYING; 505 507 wmutex->leave(); 506 MixSetupParms->pmixWrite(MixSetupParms->ulMixHandle, 507 &MixBuffer[curPlayBuf], 508 PREFILLBUF_DART); 508 curbuf = curPlayBuf; 509 for(i=0;i<PREFILLBUF_DART;i++) { 510 MixSetupParms->pmixWrite(MixSetupParms->ulMixHandle, &MixBuffer[curbuf], 1); 511 if(++curbuf == PREFILLBUF_DART) { 512 curbuf = 0; 513 } 514 } 509 515 return(MMSYSERR_NOERROR); 510 516 }
Note:
See TracChangeset
for help on using the changeset viewer.