Changeset 7196 for trunk/src/winmm/auxos2.cpp
- Timestamp:
- Oct 25, 2001, 12:47:43 AM (24 years ago)
- 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:30sandervl Exp $ */1 /* $Id: auxos2.cpp,v 1.9 2001-10-24 22:47:41 sandervl Exp $ */ 2 2 3 3 /* … … 28 28 29 29 #include "auxiliary.h" 30 #include "initwinmm.h" 30 31 31 32 #define DBG_LOCALLOG DBG_auxos2 … … 41 42 APIRET rc; 42 43 44 if(fMMPMAvailable == FALSE) return FALSE; 45 43 46 if(auxDeviceId != -1) { 44 47 return TRUE; … … 50 53 AmpOpenParms.pszDeviceType = ( PSZ ) MCI_DEVTYPE_AUDIO_AMPMIX; 51 54 52 rc = m ciSendCommand(0, MCI_OPEN,55 rc = mymciSendCommand(0, MCI_OPEN, 53 56 MCI_WAIT | MCI_OPEN_TYPE_ID | MCI_OPEN_SHAREABLE, 54 57 (PVOID) &AmpOpenParms, … … 74 77 75 78 // Close the device 76 m ciSendCommand(auxDeviceId, MCI_CLOSE, MCI_WAIT, (PVOID)&GenericParms, 0);79 mymciSendCommand(auxDeviceId, MCI_CLOSE, MCI_WAIT, (PVOID)&GenericParms, 0); 77 80 } 78 81 /******************************************************************************/ … … 84 87 85 88 maudio.ulMasterVolume = (dwVolume*100)/65536; //TODO: Not correct, should be logartihmic 86 rc = m ciSendCommand(auxDeviceId, MCI_MASTERAUDIO, MCI_MASTERVOL |89 rc = mymciSendCommand(auxDeviceId, MCI_MASTERAUDIO, MCI_MASTERVOL | 87 90 MCI_WAIT, (PVOID)&maudio,0); 88 91 if(rc) { … … 98 101 APIRET rc; 99 102 100 rc = m ciSendCommand(auxDeviceId, MCI_MASTERAUDIO, MCI_QUERYCURRENTSETTING |103 rc = mymciSendCommand(auxDeviceId, MCI_MASTERAUDIO, MCI_QUERYCURRENTSETTING | 101 104 MCI_MASTERVOL | MCI_WAIT, (PVOID)&maudio,0); 102 105 if(rc) {
Note:
See TracChangeset
for help on using the changeset viewer.