Ignore:
Timestamp:
Apr 6, 2000, 11:11:10 PM (25 years ago)
Author:
sandervl
Message:

fixed restart

File:
1 edited

Legend:

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

    r3326 r3330  
    1 /* $Id: dwaveout.cpp,v 1.20 2000-04-06 12:04:29 sandervl Exp $ */
     1/* $Id: dwaveout.cpp,v 1.21 2000-04-06 21:11:10 sandervl Exp $ */
    22
    33/*
     
    500500MMRESULT DartWaveOut::restart()
    501501{
     502 int i, curbuf;
     503
    502504    dprintf(("DartWaveOut::restart"));
    503505    wmutex->enter(VMUTEX_WAIT_FOREVER);
    504506    State = STATE_PLAYING;
    505507    wmutex->leave();
    506     MixSetupParms->pmixWrite(MixSetupParms->ulMixHandle,
    507                              &MixBuffer[curPlayBuf],
    508                              PREFILLBUF_DART);
     508    curbuf = curPlayBuf;
     509    for(i=0;i<PREFILLBUF_DART;i++) {
     510        MixSetupParms->pmixWrite(MixSetupParms->ulMixHandle, &MixBuffer[curbuf], 1);
     511        if(++curbuf == PREFILLBUF_DART) {
     512                curbuf = 0;
     513        }
     514    }
    509515    return(MMSYSERR_NOERROR);
    510516}
Note: See TracChangeset for help on using the changeset viewer.