Last change
on this file since 354 was 354, checked in by stevenhl, 17 years ago |
Import untested baseline cmedia sources, work products and binaries
Binaries and work products should be deleted from repository.
once new builds are verified to work.
|
File size:
547 bytes
|
Line | |
---|
1 |
|
---|
2 | #define INCL_NOBASEAPI
|
---|
3 | #define INCL_PMAPI
|
---|
4 | #include <os2.h>
|
---|
5 |
|
---|
6 | #define INCL_32
|
---|
7 | #include <mcios2.h>
|
---|
8 | #include <stdlib.h>
|
---|
9 |
|
---|
10 |
|
---|
11 | int main(int argc, char *argv[])
|
---|
12 | {
|
---|
13 | MCI_MASTERAUDIO_PARMS MasterParms;
|
---|
14 |
|
---|
15 | MasterParms.hwndDummyCallback = 0;
|
---|
16 | MasterParms.ulReturn = 0;
|
---|
17 |
|
---|
18 | if( argc > 1 ) MasterParms.ulMasterVolume = strtoul(argv[1], NULL, 10);
|
---|
19 | else MasterParms.ulMasterVolume = 50;
|
---|
20 |
|
---|
21 | mciSendCommand(0,
|
---|
22 | MCI_MASTERAUDIO,
|
---|
23 | MCI_WAIT | MCI_MASTERVOL /*| MCI_SAVESETTING*/,
|
---|
24 | &MasterParms,
|
---|
25 | 0);
|
---|
26 |
|
---|
27 | return 0;
|
---|
28 | }
|
---|
29 |
|
---|
Note:
See
TracBrowser
for help on using the repository browser.