- Timestamp:
- Aug 1, 2002, 6:06:43 PM (23 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/winmm/waveoutdart.cpp
r8947 r8955 1 /* $Id: waveoutdart.cpp,v 1.1 1 2002-07-31 13:51:21sandervl Exp $ */1 /* $Id: waveoutdart.cpp,v 1.12 2002-08-01 16:06:43 sandervl Exp $ */ 2 2 3 3 /* … … 301 301 302 302 if(!fUnderrun && State != STATE_STOPPED) {//don't start playback if paused 303 //write new data to the DART buffers (if there's any room left) 304 if(State == STATE_PLAYING) { 305 writeBuffer(); //must be called before (re)starting playback 306 } 303 307 wmutex.leave(); 304 308 return(MMSYSERR_NOERROR); 305 309 } 306 307 310 writeBuffer(); //must be called before (re)starting playback 308 309 311 State = STATE_PLAYING; 310 312 fUnderrun = FALSE; … … 372 374 State = STATE_PLAYING; 373 375 fUnderrun = FALSE; 376 curbuf = curPlayBuf; 377 writeBuffer(); //must be called before (re)starting playback 374 378 wmutex.leave(); 375 curbuf = curPlayBuf;376 379 377 380 // MCI_MIXSETUP_PARMS->pMixWrite does alter FS: selector! … … 417 420 MMRESULT DartWaveOut::reset() 418 421 { 419 422 MCI_GENERIC_PARMS Params; 420 423 LPWAVEHDR tmpwavehdr; 421 424 … … 425 428 426 429 memset(&Params, 0, sizeof(Params)); 430 431 wmutex.enter(); 432 State = STATE_STOPPED; 433 wmutex.leave(); 427 434 428 435 // Stop the playback. … … 444 451 } 445 452 wavehdr = NULL; 446 State = STATE_STOPPED;447 453 fUnderrun = FALSE; 448 454
Note:
See TracChangeset
for help on using the changeset viewer.