Ignore:
Timestamp:
Sep 19, 2007, 8:05:49 AM (18 years ago)
Author:
Brendan Oakley
Message:

Clean up more compile warnings in uniaud16

File:
1 edited

Legend:

Unmodified
Added
Removed
  • OCO/trunk/drv16/waveplay.cpp

    r252 r253  
    127127#endif // fixme to be gone?
    128128    {
    129         //if(devCaps[ulDeviceNr].waveOutCaps.nrStreams > 1)
    130         if (0)
     129
     130/* Setting DISABLE_STREAM_REUSE will close the open stream here.      */
     131/* If left unset, the idea is the open stream will be reused instead. */
     132/* FIXME: Does it make sense that a Close function does not close     */
     133/* anything?                                                          */
     134#ifdef DISABLE_STREAM_REUSE
     135        if(devCaps[ulDeviceNr].waveOutCaps.nrStreams > 1)
    131136        {
    132137            if (OSS16_WaveClose(StreamIdl) == OSSERR_SUCCESS)
     
    139144                return FALSE;
    140145        }
    141         //else don't close stream; reuse it instead
     146        else
     147#else /* !DISABLE_STREAM_REUSE */
     148        if (StreamIdl == NULL)
     149                return FALSE;
     150#endif /* DISABLE_STREAM_REUSE */
    142151        return TRUE;
    143152    }
Note: See TracChangeset for help on using the changeset viewer.