Ignore:
Timestamp:
Jul 28, 2003, 1:35:32 PM (22 years ago)
Author:
sandervl
Message:

Updates

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 $ */
    22
    33/*
     
    262262        //TODO: don't do this here. Select line or mic depending on aux settings
    263263        //(until we really support the mixer extensions anyway)
    264         /* Set the connector to 'line in' */
     264        /* Set the connector to 'microphone' */
    265265        memset( &ConnectorParms, '\0', sizeof( MCI_CONNECTOR_PARMS ) );
    266         ConnectorParms.ulConnectorType = MCI_LINE_IN_CONNECTOR;
     266        ConnectorParms.ulConnectorType = MCI_MICROPHONE_CONNECTOR;
    267267        rc = mymciSendCommand(DeviceId, MCI_CONNECTOR, MCI_WAIT |
    268268                              MCI_ENABLE_CONNECTOR | MCI_CONNECTOR_TYPE,
     
    311311    wmutex.enter();
    312312    if(State != STATE_RECORDING) {
     313        dprintf(("Not recording!!"));
    313314        State = STATE_STOPPED;
    314315        wmutex.leave();
     
    342343        return MMSYSERR_NOERROR;
    343344    }
    344     if(State != STATE_RECORDING) {
    345         wmutex.leave();
    346         return(MMSYSERR_HANDLEBUSY);
    347     }
    348345    wmutex.leave();
    349346
     
    415412    rc = mymciSendCommand(DeviceId, MCI_STATUS, MCI_STATUS_ITEM|MCI_WAIT, (PVOID)&mciStatus, 0);
    416413    if((rc & 0xFFFF) == MCIERR_SUCCESS) {
    417         nrbytes = (mciStatus.ulReturn * (getAvgBytesPerSecond()/1000));
     414        nrbytes = (((double)mciStatus.ulReturn * (double)getAvgBytesPerSecond())/1000.0);
    418415        return nrbytes;;
    419416    }
Note: See TracChangeset for help on using the changeset viewer.