Ignore:
Timestamp:
Oct 25, 2001, 12:47:43 AM (24 years ago)
Author:
sandervl
Message:

dynamically load MDM.DLL

File:
1 edited

Legend:

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

    r2812 r7196  
    1 /* $Id: auxos2.cpp,v 1.8 2000-02-17 14:09:30 sandervl Exp $ */
     1/* $Id: auxos2.cpp,v 1.9 2001-10-24 22:47:41 sandervl Exp $ */
    22
    33/*
     
    2828
    2929#include "auxiliary.h"
     30#include "initwinmm.h"
    3031
    3132#define DBG_LOCALLOG    DBG_auxos2
     
    4142 APIRET rc;
    4243
     44  if(fMMPMAvailable == FALSE) return FALSE;
     45
    4346  if(auxDeviceId != -1) {
    4447        return TRUE;
     
    5053  AmpOpenParms.pszDeviceType = ( PSZ ) MCI_DEVTYPE_AUDIO_AMPMIX;
    5154
    52   rc = mciSendCommand(0, MCI_OPEN,
     55  rc = mymciSendCommand(0, MCI_OPEN,
    5356                      MCI_WAIT | MCI_OPEN_TYPE_ID | MCI_OPEN_SHAREABLE,
    5457                      (PVOID) &AmpOpenParms,
     
    7477
    7578   // Close the device
    76    mciSendCommand(auxDeviceId, MCI_CLOSE, MCI_WAIT, (PVOID)&GenericParms, 0);
     79   mymciSendCommand(auxDeviceId, MCI_CLOSE, MCI_WAIT, (PVOID)&GenericParms, 0);
    7780}
    7881/******************************************************************************/
     
    8487
    8588  maudio.ulMasterVolume = (dwVolume*100)/65536;  //TODO: Not correct, should be logartihmic
    86   rc = mciSendCommand(auxDeviceId, MCI_MASTERAUDIO, MCI_MASTERVOL |
     89  rc = mymciSendCommand(auxDeviceId, MCI_MASTERAUDIO, MCI_MASTERVOL |
    8790                      MCI_WAIT, (PVOID)&maudio,0);
    8891  if(rc) {
     
    98101 APIRET rc;
    99102
    100   rc = mciSendCommand(auxDeviceId, MCI_MASTERAUDIO, MCI_QUERYCURRENTSETTING |
     103  rc = mymciSendCommand(auxDeviceId, MCI_MASTERAUDIO, MCI_QUERYCURRENTSETTING |
    101104                      MCI_MASTERVOL | MCI_WAIT, (PVOID)&maudio,0);
    102105  if(rc) {
Note: See TracChangeset for help on using the changeset viewer.