Changeset 253


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

Clean up more compile warnings in uniaud16

Location:
OCO/trunk/drv16
Files:
2 edited

Legend:

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

    r221 r253  
    8282extern "C" char szAZX[];
    8383
     84#ifdef ENABLE_HW_CERTIFICATION
    8485static char *pszIntelICH        = (char *)szINTEL_ICH;
    8586#if 0 // fixme to be gone
     
    112113static char *pszBT87X           = (char *)szBT87X;
    113114static char *pszAZX             = (char *)szAZX;
     115#endif /* ENABLE_HW_CERTIFICATION */
    114116
    115117       BOOL fNoHardware         = FALSE;
     
    186188   }
    187189
    188    /* skip sertifying crap */
    189 
    190    return TRUE;
     190#ifdef ENABLE_HW_CERTIFICATION
     191
    191192   //Check for certified audiocard/chipsets
    192193   if(!xorstrncmp(devCaps[0].szDeviceName, pszIntelICH, 6) ||
     
    311312       goto failure;
    312313   }
     314#endif /* ENABLE_HW_CERTIFICATION */
    313315   return TRUE;
    314316
  • 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.