1 |
|
---|
2 | /*
|
---|
3 | * CWAudio.idl:
|
---|
4 | */
|
---|
5 |
|
---|
6 | #include <mmaudio.idl>
|
---|
7 |
|
---|
8 | #define SIZE_PLAYTIME 11
|
---|
9 | #define SIZE_SAMPLERATE 7
|
---|
10 | #define SIZE_CHANNELS 2
|
---|
11 | #define SIZE_BPS 3
|
---|
12 |
|
---|
13 | /*
|
---|
14 | CLASS: CWAudio - replacement class for MMAudio
|
---|
15 | */
|
---|
16 |
|
---|
17 | interface M_CWAudio;
|
---|
18 |
|
---|
19 | interface CWAudio : MMAudio
|
---|
20 | {
|
---|
21 |
|
---|
22 | /*
|
---|
23 | * New instance methods
|
---|
24 | *
|
---|
25 | */
|
---|
26 | ULONG cwmmAddWaveInformationPage(in HWND hwndNotebook);
|
---|
27 | BOOL cwmmSetTrackInfo(in char* chrString, in ULONG ulValue, in int iWhich);
|
---|
28 | ULONG cwmmQueryTrackInfo(inout char* chrString, in ULONG ulSize, in int iWhich);
|
---|
29 | void cwmmPlayTrack(in BOOL bPlay);
|
---|
30 | #ifdef __SOMIDL__
|
---|
31 | implementation {
|
---|
32 |
|
---|
33 | /*
|
---|
34 | * Class Modifiers:
|
---|
35 | *
|
---|
36 | */
|
---|
37 |
|
---|
38 | externalprefix = cwaudio_;
|
---|
39 | externalstem = cwaudio;
|
---|
40 | majorversion = 1;
|
---|
41 | minorversion = 1;
|
---|
42 | filestem = cwaudio; //# specifies the filestem for sc-generated files
|
---|
43 | metaclass = M_CWAudio;
|
---|
44 | dllname = "CWMM.dll";
|
---|
45 | callstyle = oidl;
|
---|
46 | releaseorder:
|
---|
47 | cwmmAddWaveInformationPage,
|
---|
48 | cwmmSetTrackInfo,
|
---|
49 | cwmmQueryTrackInfo,
|
---|
50 | cwmmPlayTrack;
|
---|
51 | passthru C_h_after = ""
|
---|
52 | "#include \"cwmmres.h\""
|
---|
53 | "";
|
---|
54 |
|
---|
55 | /*
|
---|
56 | * Internal instance variables
|
---|
57 | *
|
---|
58 | */
|
---|
59 | ULONG ulPlaySecs;
|
---|
60 | ULONG ulSampleRate;
|
---|
61 | ULONG ulChannels;
|
---|
62 | ULONG ulBPS;
|
---|
63 | ULONG ulFileSize;
|
---|
64 | BOOL bNeedSaving;
|
---|
65 | char chrPlayTime[SIZE_PLAYTIME];
|
---|
66 | char chrSampleRate[SIZE_SAMPLERATE];
|
---|
67 | char chrChannels[SIZE_CHANNELS];
|
---|
68 | char chrBPS[SIZE_BPS];
|
---|
69 |
|
---|
70 | char id3Name[33+30+1]; /* 63 chars. ID3 allows 30 */
|
---|
71 | char id3Artist[33+30+1];
|
---|
72 | char id3Album[33+30+1];
|
---|
73 | char id3Year[4+1];
|
---|
74 | char id3Comment[30+1];
|
---|
75 | char id3Genre[30+1];
|
---|
76 |
|
---|
77 | HWND hwndObjectPlay;
|
---|
78 | ULONG ulPreviousView;
|
---|
79 | /*
|
---|
80 | * methods overridden
|
---|
81 | *
|
---|
82 | */
|
---|
83 |
|
---|
84 | wpAddSettingsPages : override;
|
---|
85 | wpQueryDetailsData : override;
|
---|
86 | wpRestoreState : override;
|
---|
87 | wpSaveState : override;
|
---|
88 | wpModifyPopupMenu : override;
|
---|
89 | wpMenuItemSelected : override;
|
---|
90 | wpObjectReady : override;
|
---|
91 | wpRefresh : override;
|
---|
92 | wpSetup : override;
|
---|
93 | wpOpen : override;
|
---|
94 | #ifdef __PRIVATE__
|
---|
95 |
|
---|
96 | #endif
|
---|
97 |
|
---|
98 | }; // implementation
|
---|
99 | #endif /* __SOMIDL__ */
|
---|
100 | };
|
---|
101 |
|
---|
102 |
|
---|
103 |
|
---|
104 | interface M_CWAudio : M_MMAudio
|
---|
105 | {
|
---|
106 |
|
---|
107 | /*
|
---|
108 | * New class methods
|
---|
109 | *
|
---|
110 | */
|
---|
111 |
|
---|
112 |
|
---|
113 | #ifdef __SOMIDL__
|
---|
114 | implementation {
|
---|
115 |
|
---|
116 |
|
---|
117 | /*
|
---|
118 | * Class Modifiers:
|
---|
119 | *
|
---|
120 | */
|
---|
121 |
|
---|
122 | externalprefix = cwaudioM_;
|
---|
123 | externalstem = cwaudioM;
|
---|
124 | functionprefix = cwaudioM_;
|
---|
125 | majorversion = 1;
|
---|
126 | minorversion = 1;
|
---|
127 | filestem = cwaudio; //# specifies the filestem for sc-generated files
|
---|
128 | dllname = "CWMM.dll";
|
---|
129 | callstyle = oidl;
|
---|
130 |
|
---|
131 | /*
|
---|
132 | * Internal class variables
|
---|
133 | *
|
---|
134 | */
|
---|
135 |
|
---|
136 | /*
|
---|
137 | * methods overridden
|
---|
138 | *
|
---|
139 | */
|
---|
140 |
|
---|
141 | wpclsQueryDetailsInfo : override;
|
---|
142 | wpclsQueryTitle : override;
|
---|
143 | wpclsInitData : override;
|
---|
144 | wpclsUnInitData : override;
|
---|
145 | wpclsQueryDefaultView : override;
|
---|
146 | };
|
---|
147 |
|
---|
148 | #endif /* __SOMIDL__ */
|
---|
149 |
|
---|
150 | };
|
---|
151 |
|
---|
152 |
|
---|