Ignore:
Timestamp:
Mar 2, 2000, 3:51:16 PM (25 years ago)
Author:
sandervl
Message:

fix for getPosition (overflow)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/winmm/dwaveout.cpp

    r2935 r2971  
    1 /* $Id: dwaveout.cpp,v 1.15 2000-02-27 20:29:46 sandervl Exp $ */
     1/* $Id: dwaveout.cpp,v 1.16 2000-03-02 14:51:15 sandervl Exp $ */
    22
    33/*
     
    145145   ulBufSize       = DART_BUFSIZE;
    146146
     147   dprintf(("waveOutOpen: samplerate %d, numChan %d bps %d, format %x", SampleRate, nChannels, BitsPerSample, pwfx->wFormatTag));
    147148   // Setup the open structure, pass the playlist and tell MCI_OPEN to use it
    148149   memset(&AmpOpenParms,0,sizeof(AmpOpenParms));
     
    531532    rc = mciSendCommand(DeviceId, MCI_STATUS, MCI_STATUS_ITEM|MCI_WAIT, (PVOID)&mciStatus, 0);
    532533    if((rc & 0xFFFF) == MCIERR_SUCCESS) {
    533         nrbytes = (mciStatus.ulReturn * getAvgBytesPerSecond())/1000;
     534        nrbytes = (mciStatus.ulReturn * (getAvgBytesPerSecond()/1000));
    534535        return nrbytes;;
    535536    }
Note: See TracChangeset for help on using the changeset viewer.