Changeset 9902 for trunk/src/winmm/waveoutdart.cpp
- Timestamp:
- Mar 5, 2003, 3:49:04 PM (22 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/winmm/waveoutdart.cpp
r9012 r9902 1 /* $Id: waveoutdart.cpp,v 1.1 5 2002-08-16 10:09:49sandervl Exp $ */1 /* $Id: waveoutdart.cpp,v 1.16 2003-03-05 14:49:04 sandervl Exp $ */ 2 2 3 3 /* … … 53 53 static BOOL fFixedWaveBufferSize = FALSE; 54 54 55 /******************************************************************************/ 56 //Call to tell winmm to expect simple fixed size buffers, so 57 //it doesn't have to use very small DART buffers; this will 58 //only work in very specific cases; it is not a good general 59 //purpose solution) 60 /******************************************************************************/ 61 void WIN32API SetFixedWaveBufferSize() 55 //****************************************************************************** 56 // ODIN_waveOutSetFixedBuffers 57 // 58 // Tell WINMM to use DART buffers of the same size as the first buffer delivered 59 // by waveOutWrite 60 // 61 // NOTE: This will only work in very specific cases; it is not a good general 62 // purpose solution. 63 // 64 //****************************************************************************** 65 void WIN32API ODIN_waveOutSetFixedBuffers(); 62 66 { 63 67 fFixedWaveBufferSize = TRUE; … … 224 228 else ulBufSize = 1024; 225 229 #endif 226 227 230 MixSetupParms->ulBufferSize = ulBufSize; 228 231 … … 467 470 ULONG rc, nrbytes; 468 471 472 if(State == STATE_STOPPED) { 473 dprintf(("Not playing; return 0 position")); 474 return 0; 475 } 476 469 477 mciStatus.ulItem = MCI_STATUS_POSITION; 470 478 rc = mymciSendCommand(DeviceId, MCI_STATUS, MCI_STATUS_ITEM|MCI_WAIT, (PVOID)&mciStatus, 0);
Note:
See TracChangeset
for help on using the changeset viewer.