Line | |
---|
1 | #define INCL_DOS
|
---|
2 | #define INCL_DOSERRORS
|
---|
3 | #include <os2.h>
|
---|
4 | #include <stdlib.h>
|
---|
5 | #include <stdio.h>
|
---|
6 | #include <io.h>
|
---|
7 | #include <fcntl.h>
|
---|
8 | #include <conio.h>
|
---|
9 | #include <math.h>
|
---|
10 |
|
---|
11 | #include "uniaud.h"
|
---|
12 | #include "unidef.h"
|
---|
13 |
|
---|
14 | int main (int argc, char *argv[])
|
---|
15 | {
|
---|
16 | int ver;
|
---|
17 |
|
---|
18 | printf("Force closing all opened PCM tool for UNIAUD. Version 0.01\n");
|
---|
19 | printf("Copyright 2004 by Vlad Stelmahosky aka Vladest\n");
|
---|
20 |
|
---|
21 | ver = uniaud_get_version();
|
---|
22 |
|
---|
23 | switch (ver)
|
---|
24 | {
|
---|
25 | case -2:
|
---|
26 | printf("Error: uniaud not detected\n");
|
---|
27 | return 1;
|
---|
28 | break;
|
---|
29 | case -1:
|
---|
30 | printf("Error: uniaud error\n");
|
---|
31 | return 1;
|
---|
32 | break;
|
---|
33 | default:
|
---|
34 | if (ver < 111)
|
---|
35 | {
|
---|
36 | printf("Error: unsupported version of uniaud\n");
|
---|
37 | return 1;
|
---|
38 | } else
|
---|
39 | printf("Detected UNIAUD version %1d.%02d.%02d\n", ver/10000, (ver / 100) % 100, ver % 100 );
|
---|
40 | }
|
---|
41 |
|
---|
42 | uniaud_close_all_pcms(0);
|
---|
43 |
|
---|
44 | return 0;
|
---|
45 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.