Ignore:
Timestamp:
Mar 5, 2003, 3:49:04 PM (22 years ago)
Author:
sandervl
Message:

waveoutGetPosition: return 0 if stream is not active (DART); waveinGetPosition: return 0 if stream is not active (DART); Don't print a warning for CALLBACK_NULL callbacks; Added ODIN_waveInSetFixedBuffers, renamed SetFixedWaveBufferSize to ODIN_waveOutSetFixedBuffers. Used to tell WINMM to use the waveOutWrite buffer size for the DART buffers

File:
1 edited

Legend:

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

    r9012 r9902  
    1 /* $Id: waveoutdart.cpp,v 1.15 2002-08-16 10:09:49 sandervl Exp $ */
     1/* $Id: waveoutdart.cpp,v 1.16 2003-03-05 14:49:04 sandervl Exp $ */
    22
    33/*
     
    5353static BOOL fFixedWaveBufferSize = FALSE;
    5454
    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//******************************************************************************
     65void WIN32API ODIN_waveOutSetFixedBuffers();
    6266{
    6367    fFixedWaveBufferSize = TRUE;
     
    224228        else    ulBufSize = 1024;
    225229#endif
    226 
    227230        MixSetupParms->ulBufferSize = ulBufSize;
    228231
     
    467470 ULONG rc, nrbytes;
    468471
     472    if(State == STATE_STOPPED) {
     473        dprintf(("Not playing; return 0 position"));
     474        return 0;
     475    }
     476
    469477    mciStatus.ulItem = MCI_STATUS_POSITION;
    470478    rc = mymciSendCommand(DeviceId, MCI_STATUS, MCI_STATUS_ITEM|MCI_WAIT, (PVOID)&mciStatus, 0);
Note: See TracChangeset for help on using the changeset viewer.