Changeset 486 for OCO/trunk/include/ioctl90.h
- Timestamp:
- May 23, 2010, 10:28:06 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
OCO/trunk/include/ioctl90.h
r33 r486 8 8 // 9 9 // Crystal Semiconductor defined category 0x90 OS/2 mixer IOCTLS. 10 // 10 // 11 11 // STATUS: (Drivers known to implement this API) 12 12 // Crystal Semiconductor ISA Mode 3 driver version 2.08. … … 15 15 //----------------------------------------------------------------------------- 16 16 // 17 // This header file contains application usable defines for calls to 17 // This header file contains application usable defines for calls to 18 18 // Crystal Semiconductor device driver to manage hardware mixer. 19 19 // It is primarily used to adjust the listening level of 20 20 // mixer inputs (CD-ROM, Aux, Line, Phone...). The API also allows 21 // adjustment to the record gain as an override to MMPM/2 stream 21 // adjustment to the record gain as an override to MMPM/2 stream 22 22 // specific API. 23 23 // … … 58 58 // 4E - RecordSrcSet 6E - RecordSrcQuery 59 59 // 4F - RecordGainSet 6F - RecordGainQuery 60 // 80 - ApiLevelQuery 60 // 80 - ApiLevelQuery 61 61 // 81 - GetApiMap 62 62 // 82 - CallbackReg 63 63 // 64 // Application passes a structure (ioctl data buffer) 64 // Application passes a structure (ioctl data buffer) 65 65 // which contains: 66 66 // ULONG Mute; // UnMute==0, Mute==1 … … 68 68 // ULONG ulVolR; // Right volume in percent 0..100 69 69 // 70 // With the exception of the record gain APIs, these APIs effect 70 // With the exception of the record gain APIs, these APIs effect 71 71 // what you hear (output bus connections). 72 72 // … … 93 93 // ULONG ulActionTaken = 0; 94 94 // HFILE hPdd = NULL; 95 // 95 // 96 96 // OpenFlags = OPEN_ACTION_OPEN_IF_EXISTS; // Do not create file 97 // 97 // 98 98 // OpenMode = OPEN_ACCESS_READWRITE + // Read/Write file 99 99 // OPEN_SHARE_DENYNONE + // Non-exclusive access 100 100 // OPEN_FLAGS_FAIL_ON_ERROR; // No system popups on errors 101 // 101 // 102 102 // ulRC = DosOpen (ddName, // in 103 103 // &hPdd, // out (handle) … … 108 108 // OpenMode, // in 109 109 // NULL); // in 110 // 110 // 111 111 // printf ("DosOpen RC = %x\n", ulRC); 112 // 112 // 113 113 // if (ulRC != 0) 114 114 // hPdd = NULL; 115 // 115 // 116 116 // return (hPdd); 117 117 // } … … 121 121 // ULONG ulRC; 122 122 // ULONG ulSizeOfStruct = = sizeof (MixStruct); 123 // 124 // ulRC = DosDevIOCtl 123 // 124 // ulRC = DosDevIOCtl 125 125 // (hPdd, // Device Handle 126 126 // 0x90, // Category (user defined >= 0x80) … … 132 132 // ulSizeOfStruct, // in Maximum size of command data 133 133 // &ulSizeOfStruct); // in out Size of command data 134 // 134 // 135 135 // printf ("DosDevIOCtl ulRC = %d\n", ulRC); 136 // 136 // 137 137 // return (ulRC); 138 138 // } … … 150 150 151 151 // This prototype is used in the device driver only (common header) 152 //USHORT ioctlmixMain (USHORT Function, 152 //USHORT ioctlmixMain (USHORT Function, 153 153 // USHORT SysFileNum, 154 // ULONG ulpvData, 154 // ULONG ulpvData, 155 155 // USHORT usDLength); 156 156 … … 184 184 #define VIDEOSET 0x45 185 185 #define AUXSET 0x46 186 #define HEADPHONESET 0x47 186 187 #define BASSTREBLESET 0x4B 187 188 #define THREEDSET 0x4C … … 197 198 #define VIDEOQUERY 0x65 198 199 #define AUXQUERY 0x66 200 #define HEADPHONEQUERY 0x67 199 201 #define BASSTREBLEQUERY 0x6B 200 202 #define THREEDQUERY 0x6C … … 213 215 // This allows override of settings from MMPM/2 applications. 214 216 215 #define I90SRC_BASE 0x00000010 // 0..F are reserved (MMPM/2 space) 217 #define I90SRC_BASE 0x00000010 // 0..F are reserved (MMPM/2 space) 216 218 #define I90SRC_MIC 0x00000010 217 219 #define I90SRC_CD 0x00000020 … … 224 226 225 227 226 // In first release, the APILEVELQUERY function returns a ULONG, 0x01. 228 // In first release, the APILEVELQUERY function returns a ULONG, 0x01. 227 229 // As significant changes are made to the ioctlmix API, the return value 228 230 // of this function will be incremented. 229 231 230 232 // GETAPIMAP 231 // To help an application know what APIs are supported by this device driver, 233 // To help an application know what APIs are supported by this device driver, 232 234 // return an array of booleans (BYTES). TRUE => Supported. 233 // The array must be declared as 256 bytes. This is larger than necessary as 235 // The array must be declared as 256 bytes. This is larger than necessary as 234 236 // the first 64 entries, range 0x00..0x39, are guaranteed to be zero. 235 237 // The extra bytes allows the array to be indexed using the IOCTL function 236 238 // defines in this file. 237 239 // 238 // Notice that a FALSE value in an array position (for example "video set") 240 // Notice that a FALSE value in an array position (for example "video set") 239 241 // can be used to inform the mixer application that this device driver does 240 242 // not support a "video" connection to the audio device.
Note:
See TracChangeset
for help on using the changeset viewer.