Changeset 10185 for trunk/src/winmm/waveindart.cpp
- Timestamp:
- Jul 28, 2003, 1:35:32 PM (22 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/winmm/waveindart.cpp
r9902 r10185 1 /* $Id: waveindart.cpp,v 1. 6 2003-03-05 14:49:04 sandervl Exp $ */1 /* $Id: waveindart.cpp,v 1.7 2003-07-28 11:30:44 sandervl Exp $ */ 2 2 3 3 /* … … 262 262 //TODO: don't do this here. Select line or mic depending on aux settings 263 263 //(until we really support the mixer extensions anyway) 264 /* Set the connector to ' line in' */264 /* Set the connector to 'microphone' */ 265 265 memset( &ConnectorParms, '\0', sizeof( MCI_CONNECTOR_PARMS ) ); 266 ConnectorParms.ulConnectorType = MCI_ LINE_IN_CONNECTOR;266 ConnectorParms.ulConnectorType = MCI_MICROPHONE_CONNECTOR; 267 267 rc = mymciSendCommand(DeviceId, MCI_CONNECTOR, MCI_WAIT | 268 268 MCI_ENABLE_CONNECTOR | MCI_CONNECTOR_TYPE, … … 311 311 wmutex.enter(); 312 312 if(State != STATE_RECORDING) { 313 dprintf(("Not recording!!")); 313 314 State = STATE_STOPPED; 314 315 wmutex.leave(); … … 342 343 return MMSYSERR_NOERROR; 343 344 } 344 if(State != STATE_RECORDING) {345 wmutex.leave();346 return(MMSYSERR_HANDLEBUSY);347 }348 345 wmutex.leave(); 349 346 … … 415 412 rc = mymciSendCommand(DeviceId, MCI_STATUS, MCI_STATUS_ITEM|MCI_WAIT, (PVOID)&mciStatus, 0); 416 413 if((rc & 0xFFFF) == MCIERR_SUCCESS) { 417 nrbytes = ( mciStatus.ulReturn * (getAvgBytesPerSecond()/1000));414 nrbytes = (((double)mciStatus.ulReturn * (double)getAvgBytesPerSecond())/1000.0); 418 415 return nrbytes;; 419 416 }
Note:
See TracChangeset
for help on using the changeset viewer.