Ignore:
Timestamp:
Apr 3, 2003, 3:07:04 PM (22 years ago)
Author:
sandervl
Message:

Different method for detecting DirectAudio (uniaud, sblive, c-media) ; Added custom build function to disable DirectAudio (always use DART)

File:
1 edited

Legend:

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

    r9917 r9979  
    1 /* $Id: waveoutdart.cpp,v 1.20 2003-03-06 18:18:56 sandervl Exp $ */
     1/* $Id: waveoutdart.cpp,v 1.21 2003-04-03 13:07:03 sandervl Exp $ */
    22
    33/*
     
    509509    rc = mymciSendCommand(DeviceId, MCI_STATUS, MCI_STATUS_ITEM|MCI_WAIT, (PVOID)&mciStatus, 0);
    510510    if((rc & 0xFFFF) == MCIERR_SUCCESS) {
    511         nrbytes = (ULONG)((double)mciStatus.ulReturn * ((double)getAvgBytesPerSecond()/1000.0));
     511        nrbytes = (ULONG)(((double)mciStatus.ulReturn * (double)getAvgBytesPerSecond())/1000.0);
    512512        return nrbytes;;
    513513    }
     
    742742
    743743    ptib2 = (PTIB2)_getTIBvalue(offsetof(TIB, tib_ptib2));
    744     if(ptib2 && HIBYTE(ptib2->tib2_ulpri) != PRTYC_TIMECRITICAL) {
    745         dprintf(("Setting priority of DART thread to PRTYC_TIMECRITICAL"));
    746         DosSetPriority(PRTYS_THREAD, PRTYC_TIMECRITICAL, 0, 0);
     744    if(ptib2 && HIBYTE(ptib2->tib2_ulpri) != PRTYC_TIMECRITICAL &&
     745       LOBYTE(ptib2->tib2_ulpri) != PRTYD_MAXIMUM)
     746    {
     747        dprintf(("Setting priority of DART thread to PRTYC_TIMECRITICAL/PRTYD_MAXIMUM"));
     748        DosSetPriority(PRTYS_THREAD, PRTYC_TIMECRITICAL, PRTYD_MAXIMUM, 0);
    747749    }
    748750    if(pBuffer && pBuffer->ulUserParm)
Note: See TracChangeset for help on using the changeset viewer.