forked from dippy-dipper/ogg-winmm
-
Notifications
You must be signed in to change notification settings - Fork 0
/
stubs.c
1519 lines (1327 loc) · 46.4 KB
/
stubs.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
#include <windows.h>
#include <stdio.h>
#include <ctype.h>
#include "player.h"
static float midiVol = 1.0;
static float waveVol = 1.0;
static int waveBits = -1;
static HINSTANCE realWinmmDLL = NULL;
void stub_midivol(int vol) { midiVol = vol < 0 || vol > 99 ? 1.0 : vol / 100.0; }
void stub_wavevol(int vol) { waveVol = vol < 0 || vol > 99 ? 1.0 : vol / 100.0; }
void unloadRealDLL()
{
if (realWinmmDLL) {
FreeLibrary(realWinmmDLL);
realWinmmDLL = NULL;
}
}
/* if winmm.dll is already loaded, return its handle */
/* otherwise, load it */
HINSTANCE loadRealDLL()
{
if (!realWinmmDLL) {
char winmm_path[MAX_PATH];
GetSystemDirectory(winmm_path, MAX_PATH);
strcat(winmm_path, "\\winmm.dll");
realWinmmDLL = LoadLibrary(winmm_path);
}
return realWinmmDLL;
}
/* on Windows Vista and later, midiOutSetVolume is always tied to master volume */
MMRESULT WINAPI fake_midiStreamOut(HMIDISTRM a0, LPMIDIHDR a1, UINT a2)
{
static MMRESULT(WINAPI *funcp)(HMIDISTRM a0, LPMIDIHDR a1, UINT a2) = NULL;
if (funcp == NULL)
funcp = (void*)GetProcAddress(loadRealDLL(), "midiStreamOut");
#ifdef MIDI_VELOCITY_SCALING
if (midiVol != 1.0 && a1 && a1->lpData) {
for (int i = 0, j = a1->dwBytesRecorded; i < j; i += sizeof(DWORD)*3) {
MIDIEVENT *pe = (MIDIEVENT *)(a1->lpData + i);
if (pe->dwEvent & MEVT_F_LONG) {
/* DWORD padding is required */
i += (MEVT_EVENTPARM(pe->dwEvent) + 3) & 0xFFFFFC;
} else if (MEVT_EVENTTYPE(pe->dwEvent) == MEVT_SHORTMSG) {
char *pv = (char *)&pe->dwEvent;
if (!(pe->dwEvent&0x80)) {
/* running status */
pv[1] *= midiVol;
} else if ((pe->dwEvent&0xF0) < 0xB0) {
/* new voice status */
pv[2] *= midiVol;
}
}
}
}
#endif
return (*funcp)(a0, a1, a2);
}
MMRESULT WINAPI fake_waveOutOpen(LPHWAVEOUT a0, UINT a1, LPCWAVEFORMATEX a2, DWORD a3, DWORD a4, DWORD a5)
{
static MMRESULT(WINAPI *funcp)(LPHWAVEOUT a0, UINT a1, LPCWAVEFORMATEX a2, DWORD a3, DWORD a4, DWORD a5) = NULL;
if (funcp == NULL)
funcp = (void*)GetProcAddress(loadRealDLL(), "waveOutOpen");
/* FIXME: waveOutOpen can be called multiple times with different sample bits for sound mixing */
/* However, it is almost always to be 16-bits; extremely rarely to be 8-bits or of a mixed-up */
if (a2) waveBits = a2->wBitsPerSample;
return (*funcp)(a0, a1, a2, a3, a4, a5);
}
/* on Windows Vista and later, waveOutSetVolume is always tied to master volume */
MMRESULT WINAPI fake_waveOutWrite(HWAVEOUT a0, LPWAVEHDR a1, UINT a2)
{
static MMRESULT(WINAPI *funcp)(HWAVEOUT a0, LPWAVEHDR a1, UINT a2) = NULL;
if (funcp == NULL)
funcp = (void*)GetProcAddress(loadRealDLL(), "waveOutWrite");
/* let owr own OGG wave pass through */
if ((waveVol != 1.0 || midiVol != 1.0 ) && a1 && a1->lpData && a1->dwUser != 0xCDDA7777) {
/* Windows is f**ked up. MIDI synth driver converts MIDI to WAVE and then calls winmm.waveOutWrite!!! */
void *addr = __builtin_return_address(0);
char caller[MAX_PATH];
MEMORY_BASIC_INFORMATION mbi;
VirtualQuery(addr, &mbi, sizeof(MEMORY_BASIC_INFORMATION));
GetModuleFileName(mbi.AllocationBase, caller, MAX_PATH);
float vol = 1.0;
char *pos = strrchr(caller, '\\');
/* Mixer: msacm32.drv */
if (strstr(pos, "wdmaud.drv")) vol = midiVol;
else if (!strstr(pos, ".drv")) vol = waveVol;
if (vol != 1.0) {
short *wave16;
char *wave8;
switch (waveBits) {
case 16:
wave16 = (short *)a1->lpData;
for (int i = 0, j = a1->dwBufferLength/2; i < j; i++) {
wave16[i] *= vol;
}
break;
case 8:
wave8 = (char *)a1->lpData;
for (int i = 0, j = a1->dwBufferLength; i < j; i++) {
wave8[i] *= vol;
}
break;
default:
; /* WTF? */
}
}
}
return (*funcp)(a0, a1, a2);
}
MCIERROR WINAPI relay_mciSendCommandA(MCIDEVICEID a0, UINT a1, DWORD a2, DWORD a3)
{
static MCIERROR(WINAPI *funcp)(MCIDEVICEID a0, UINT a1, DWORD a2, DWORD a3) = NULL;
if (funcp == NULL)
funcp = (void*)GetProcAddress(loadRealDLL(), "mciSendCommandA");
return (*funcp)(a0, a1, a2, a3);
}
MCIERROR WINAPI relay_mciSendStringA(LPCSTR a0, LPSTR a1, UINT a2, HWND a3)
{
static MCIERROR(WINAPI *funcp)(LPCSTR a0, LPSTR a1, UINT a2, HWND a3) = NULL;
if (funcp == NULL)
funcp = (void*)GetProcAddress(loadRealDLL(), "mciSendStringA");
return (*funcp)(a0, a1, a2, a3);
}
/**/
/* stubs for functions to call from the real winmm.dll */
/**/
LRESULT WINAPI fake_CloseDriver(HDRVR a0, LONG a1, LONG a2)
{
static LRESULT(WINAPI *funcp)(HDRVR a0, LONG a1, LONG a2) = NULL;
if (funcp == NULL)
funcp = (void*)GetProcAddress(loadRealDLL(), "CloseDriver");
return (*funcp)(a0, a1, a2);
}
HDRVR WINAPI fake_OpenDriver(LPCWSTR a0, LPCWSTR a1, LONG a2)
{
static HDRVR(WINAPI *funcp)(LPCWSTR a0, LPCWSTR a1, LONG a2) = NULL;
if (funcp == NULL)
funcp = (void*)GetProcAddress(loadRealDLL(), "OpenDriver");
return (*funcp)(a0, a1, a2);
}
LRESULT WINAPI fake_SendDriverMessage(HDRVR a0, UINT a1, LONG a2, LONG a3)
{
static LRESULT(WINAPI *funcp)(HDRVR a0, UINT a1, LONG a2, LONG a3) = NULL;
if (funcp == NULL)
funcp = (void*)GetProcAddress(loadRealDLL(), "SendDriverMessage");
return (*funcp)(a0, a1, a2, a3);
}
HMODULE WINAPI fake_DrvGetModuleHandle(HDRVR a0)
{
static HMODULE(WINAPI *funcp)(HDRVR a0) = NULL;
if (funcp == NULL)
funcp = (void*)GetProcAddress(loadRealDLL(), "DrvGetModuleHandle");
return (*funcp)(a0);
}
HMODULE WINAPI fake_GetDriverModuleHandle(HDRVR a0)
{
static HMODULE(WINAPI *funcp)(HDRVR a0) = NULL;
if (funcp == NULL)
funcp = (void*)GetProcAddress(loadRealDLL(), "GetDriverModuleHandle");
return (*funcp)(a0);
}
LRESULT WINAPI fake_DefDriverProc(DWORD a0, HDRVR a1, UINT a2, LPARAM a3, LPARAM a4)
{
static LRESULT(WINAPI *funcp)(DWORD a0, HDRVR a1, UINT a2, LPARAM a3, LPARAM a4) = NULL;
if (funcp == NULL)
funcp = (void*)GetProcAddress(loadRealDLL(), "DefDriverProc");
return (*funcp)(a0, a1, a2, a3, a4);
}
UINT WINAPI fake_mmsystemGetVersion()
{
static UINT(WINAPI *funcp)() = NULL;
if (funcp == NULL)
funcp = (void*)GetProcAddress(loadRealDLL(), "mmsystemGetVersion");
return (*funcp)();
}
BOOL WINAPI fake_sndPlaySoundA(LPCSTR a0, UINT a1)
{
static BOOL(WINAPI *funcp)(LPCSTR a0, UINT a1) = NULL;
if (funcp == NULL)
funcp = (void*)GetProcAddress(loadRealDLL(), "sndPlaySoundA");
return (*funcp)(a0, a1);
}
BOOL WINAPI fake_sndPlaySoundW(LPCWSTR a0, UINT a1)
{
static BOOL(WINAPI *funcp)(LPCWSTR a0, UINT a1) = NULL;
if (funcp == NULL)
funcp = (void*)GetProcAddress(loadRealDLL(), "sndPlaySoundW");
return (*funcp)(a0, a1);
}
BOOL WINAPI fake_PlaySound(LPCSTR a0, HMODULE a1, DWORD a2)
{
static BOOL(WINAPI *funcp)(LPCSTR a0, HMODULE a1, DWORD a2) = NULL;
if (funcp == NULL)
funcp = (void*)GetProcAddress(loadRealDLL(), "PlaySound");
return (*funcp)(a0, a1, a2);
}
BOOL WINAPI fake_PlaySoundA(LPCSTR a0, HMODULE a1, DWORD a2)
{
static BOOL(WINAPI *funcp)(LPCSTR a0, HMODULE a1, DWORD a2) = NULL;
if (funcp == NULL)
funcp = (void*)GetProcAddress(loadRealDLL(), "PlaySoundA");
return (*funcp)(a0, a1, a2);
}
BOOL WINAPI fake_PlaySoundW(LPCWSTR a0, HMODULE a1, DWORD a2)
{
static BOOL(WINAPI *funcp)(LPCWSTR a0, HMODULE a1, DWORD a2) = NULL;
if (funcp == NULL)
funcp = (void*)GetProcAddress(loadRealDLL(), "PlaySoundW");
return (*funcp)(a0, a1, a2);
}
UINT WINAPI fake_waveOutGetNumDevs()
{
static UINT(WINAPI *funcp)() = NULL;
if (funcp == NULL)
funcp = (void*)GetProcAddress(loadRealDLL(), "waveOutGetNumDevs");
return (*funcp)();
}
MMRESULT WINAPI fake_waveOutGetDevCapsA(UINT a0, LPWAVEOUTCAPSA a1, UINT a2)
{
static MMRESULT(WINAPI *funcp)(UINT a0, LPWAVEOUTCAPSA a1, UINT a2) = NULL;
if (funcp == NULL)
funcp = (void*)GetProcAddress(loadRealDLL(), "waveOutGetDevCapsA");
return (*funcp)(a0, a1, a2);
}
MMRESULT WINAPI fake_waveOutGetDevCapsW(UINT a0, LPWAVEOUTCAPSW a1, UINT a2)
{
static MMRESULT(WINAPI *funcp)(UINT a0, LPWAVEOUTCAPSW a1, UINT a2) = NULL;
if (funcp == NULL)
funcp = (void*)GetProcAddress(loadRealDLL(), "waveOutGetDevCapsW");
return (*funcp)(a0, a1, a2);
}
MMRESULT WINAPI fake_waveOutGetVolume(HWAVEOUT a0, PDWORD a1)
{
static MMRESULT(WINAPI *funcp)(HWAVEOUT a0, PDWORD a1) = NULL;
if (funcp == NULL)
funcp = (void*)GetProcAddress(loadRealDLL(), "waveOutGetVolume");
return (*funcp)(a0, a1);
}
MMRESULT WINAPI fake_waveOutSetVolume(HWAVEOUT a0, DWORD a1)
{
static MMRESULT(WINAPI *funcp)(HWAVEOUT a0, DWORD a1) = NULL;
if (funcp == NULL)
funcp = (void*)GetProcAddress(loadRealDLL(), "waveOutSetVolume");
return (*funcp)(a0, a1);
}
MMRESULT WINAPI fake_waveOutGetErrorTextA(MMRESULT a0, LPSTR a1, UINT a2)
{
static MMRESULT(WINAPI *funcp)(MMRESULT a0, LPSTR a1, UINT a2) = NULL;
if (funcp == NULL)
funcp = (void*)GetProcAddress(loadRealDLL(), "waveOutGetErrorTextA");
return (*funcp)(a0, a1, a2);
}
MMRESULT WINAPI fake_waveOutGetErrorTextW(MMRESULT a0, LPWSTR a1, UINT a2)
{
static MMRESULT(WINAPI *funcp)(MMRESULT a0, LPWSTR a1, UINT a2) = NULL;
if (funcp == NULL)
funcp = (void*)GetProcAddress(loadRealDLL(), "waveOutGetErrorTextW");
return (*funcp)(a0, a1, a2);
}
MMRESULT WINAPI fake_waveOutClose(HWAVEOUT a0)
{
static MMRESULT(WINAPI *funcp)(HWAVEOUT a0) = NULL;
if (funcp == NULL)
funcp = (void*)GetProcAddress(loadRealDLL(), "waveOutClose");
return (*funcp)(a0);
}
MMRESULT WINAPI fake_waveOutPrepareHeader(HWAVEOUT a0, LPWAVEHDR a1, UINT a2)
{
static MMRESULT(WINAPI *funcp)(HWAVEOUT a0, LPWAVEHDR a1, UINT a2) = NULL;
if (funcp == NULL)
funcp = (void*)GetProcAddress(loadRealDLL(), "waveOutPrepareHeader");
return (*funcp)(a0, a1, a2);
}
MMRESULT WINAPI fake_waveOutUnprepareHeader(HWAVEOUT a0, LPWAVEHDR a1, UINT a2)
{
static MMRESULT(WINAPI *funcp)(HWAVEOUT a0, LPWAVEHDR a1, UINT a2) = NULL;
if (funcp == NULL)
funcp = (void*)GetProcAddress(loadRealDLL(), "waveOutUnprepareHeader");
return (*funcp)(a0, a1, a2);
}
MMRESULT WINAPI fake_waveOutPause(HWAVEOUT a0)
{
static MMRESULT(WINAPI *funcp)(HWAVEOUT a0) = NULL;
if (funcp == NULL)
funcp = (void*)GetProcAddress(loadRealDLL(), "waveOutPause");
return (*funcp)(a0);
}
MMRESULT WINAPI fake_waveOutRestart(HWAVEOUT a0)
{
static MMRESULT(WINAPI *funcp)(HWAVEOUT a0) = NULL;
if (funcp == NULL)
funcp = (void*)GetProcAddress(loadRealDLL(), "waveOutRestart");
return (*funcp)(a0);
}
MMRESULT WINAPI fake_waveOutReset(HWAVEOUT a0)
{
static MMRESULT(WINAPI *funcp)(HWAVEOUT a0) = NULL;
if (funcp == NULL)
funcp = (void*)GetProcAddress(loadRealDLL(), "waveOutReset");
return (*funcp)(a0);
}
MMRESULT WINAPI fake_waveOutBreakLoop(HWAVEOUT a0)
{
static MMRESULT(WINAPI *funcp)(HWAVEOUT a0) = NULL;
if (funcp == NULL)
funcp = (void*)GetProcAddress(loadRealDLL(), "waveOutBreakLoop");
return (*funcp)(a0);
}
MMRESULT WINAPI fake_waveOutGetPosition(HWAVEOUT a0, LPMMTIME a1, UINT a2)
{
static MMRESULT(WINAPI *funcp)(HWAVEOUT a0, LPMMTIME a1, UINT a2) = NULL;
if (funcp == NULL)
funcp = (void*)GetProcAddress(loadRealDLL(), "waveOutGetPosition");
return (*funcp)(a0, a1, a2);
}
MMRESULT WINAPI fake_waveOutGetPitch(HWAVEOUT a0, PDWORD a1)
{
static MMRESULT(WINAPI *funcp)(HWAVEOUT a0, PDWORD a1) = NULL;
if (funcp == NULL)
funcp = (void*)GetProcAddress(loadRealDLL(), "waveOutGetPitch");
return (*funcp)(a0, a1);
}
MMRESULT WINAPI fake_waveOutSetPitch(HWAVEOUT a0, DWORD a1)
{
static MMRESULT(WINAPI *funcp)(HWAVEOUT a0, DWORD a1) = NULL;
if (funcp == NULL)
funcp = (void*)GetProcAddress(loadRealDLL(), "waveOutSetPitch");
return (*funcp)(a0, a1);
}
MMRESULT WINAPI fake_waveOutGetPlaybackRate(HWAVEOUT a0, PDWORD a1)
{
static MMRESULT(WINAPI *funcp)(HWAVEOUT a0, PDWORD a1) = NULL;
if (funcp == NULL)
funcp = (void*)GetProcAddress(loadRealDLL(), "waveOutGetPlaybackRate");
return (*funcp)(a0, a1);
}
MMRESULT WINAPI fake_waveOutSetPlaybackRate(HWAVEOUT a0, DWORD a1)
{
static MMRESULT(WINAPI *funcp)(HWAVEOUT a0, DWORD a1) = NULL;
if (funcp == NULL)
funcp = (void*)GetProcAddress(loadRealDLL(), "waveOutSetPlaybackRate");
return (*funcp)(a0, a1);
}
MMRESULT WINAPI fake_waveOutGetID(HWAVEOUT a0, LPUINT a1)
{
static MMRESULT(WINAPI *funcp)(HWAVEOUT a0, LPUINT a1) = NULL;
if (funcp == NULL)
funcp = (void*)GetProcAddress(loadRealDLL(), "waveOutGetID");
return (*funcp)(a0, a1);
}
MMRESULT WINAPI fake_waveOutMessage(HWAVEOUT a0, UINT a1, DWORD a2, DWORD a3)
{
static MMRESULT(WINAPI *funcp)(HWAVEOUT a0, UINT a1, DWORD a2, DWORD a3) = NULL;
if (funcp == NULL)
funcp = (void*)GetProcAddress(loadRealDLL(), "waveOutMessage");
return (*funcp)(a0, a1, a2, a3);
}
UINT WINAPI fake_waveInGetNumDevs()
{
static UINT(WINAPI *funcp)() = NULL;
if (funcp == NULL)
funcp = (void*)GetProcAddress(loadRealDLL(), "waveInGetNumDevs");
return (*funcp)();
}
MMRESULT WINAPI fake_waveInGetDevCapsA(UINT a0, LPWAVEINCAPSA a1, UINT a2)
{
static MMRESULT(WINAPI *funcp)(UINT a0, LPWAVEINCAPSA a1, UINT a2) = NULL;
if (funcp == NULL)
funcp = (void*)GetProcAddress(loadRealDLL(), "waveInGetDevCapsA");
return (*funcp)(a0, a1, a2);
}
MMRESULT WINAPI fake_waveInGetDevCapsW(UINT a0, LPWAVEINCAPSW a1, UINT a2)
{
static MMRESULT(WINAPI *funcp)(UINT a0, LPWAVEINCAPSW a1, UINT a2) = NULL;
if (funcp == NULL)
funcp = (void*)GetProcAddress(loadRealDLL(), "waveInGetDevCapsW");
return (*funcp)(a0, a1, a2);
}
MMRESULT WINAPI fake_waveInGetErrorTextA(MMRESULT a0, LPSTR a1, UINT a2)
{
static MMRESULT(WINAPI *funcp)(MMRESULT a0, LPSTR a1, UINT a2) = NULL;
if (funcp == NULL)
funcp = (void*)GetProcAddress(loadRealDLL(), "waveInGetErrorTextA");
return (*funcp)(a0, a1, a2);
}
MMRESULT WINAPI fake_waveInGetErrorTextW(MMRESULT a0, LPWSTR a1, UINT a2)
{
static MMRESULT(WINAPI *funcp)(MMRESULT a0, LPWSTR a1, UINT a2) = NULL;
if (funcp == NULL)
funcp = (void*)GetProcAddress(loadRealDLL(), "waveInGetErrorTextW");
return (*funcp)(a0, a1, a2);
}
MMRESULT WINAPI fake_waveInOpen(LPHWAVEIN a0, UINT a1, LPCWAVEFORMATEX a2, DWORD a3, DWORD a4, DWORD a5)
{
static MMRESULT(WINAPI *funcp)(LPHWAVEIN a0, UINT a1, LPCWAVEFORMATEX a2, DWORD a3, DWORD a4, DWORD a5) = NULL;
if (funcp == NULL)
funcp = (void*)GetProcAddress(loadRealDLL(), "waveInOpen");
return (*funcp)(a0, a1, a2, a3, a4, a5);
}
MMRESULT WINAPI fake_waveInClose(HWAVEIN a0)
{
static MMRESULT(WINAPI *funcp)(HWAVEIN a0) = NULL;
if (funcp == NULL)
funcp = (void*)GetProcAddress(loadRealDLL(), "waveInClose");
return (*funcp)(a0);
}
MMRESULT WINAPI fake_waveInPrepareHeader(HWAVEIN a0, LPWAVEHDR a1, UINT a2)
{
static MMRESULT(WINAPI *funcp)(HWAVEIN a0, LPWAVEHDR a1, UINT a2) = NULL;
if (funcp == NULL)
funcp = (void*)GetProcAddress(loadRealDLL(), "waveInPrepareHeader");
return (*funcp)(a0, a1, a2);
}
MMRESULT WINAPI fake_waveInUnprepareHeader(HWAVEIN a0, LPWAVEHDR a1, UINT a2)
{
static MMRESULT(WINAPI *funcp)(HWAVEIN a0, LPWAVEHDR a1, UINT a2) = NULL;
if (funcp == NULL)
funcp = (void*)GetProcAddress(loadRealDLL(), "waveInUnprepareHeader");
return (*funcp)(a0, a1, a2);
}
MMRESULT WINAPI fake_waveInAddBuffer(HWAVEIN a0, LPWAVEHDR a1, UINT a2)
{
static MMRESULT(WINAPI *funcp)(HWAVEIN a0, LPWAVEHDR a1, UINT a2) = NULL;
if (funcp == NULL)
funcp = (void*)GetProcAddress(loadRealDLL(), "waveInAddBuffer");
return (*funcp)(a0, a1, a2);
}
MMRESULT WINAPI fake_waveInStart(HWAVEIN a0)
{
static MMRESULT(WINAPI *funcp)(HWAVEIN a0) = NULL;
if (funcp == NULL)
funcp = (void*)GetProcAddress(loadRealDLL(), "waveInStart");
return (*funcp)(a0);
}
MMRESULT WINAPI fake_waveInStop(HWAVEIN a0)
{
static MMRESULT(WINAPI *funcp)(HWAVEIN a0) = NULL;
if (funcp == NULL)
funcp = (void*)GetProcAddress(loadRealDLL(), "waveInStop");
return (*funcp)(a0);
}
MMRESULT WINAPI fake_waveInReset(HWAVEIN a0)
{
static MMRESULT(WINAPI *funcp)(HWAVEIN a0) = NULL;
if (funcp == NULL)
funcp = (void*)GetProcAddress(loadRealDLL(), "waveInReset");
return (*funcp)(a0);
}
MMRESULT WINAPI fake_waveInGetPosition(HWAVEIN a0, LPMMTIME a1, UINT a2)
{
static MMRESULT(WINAPI *funcp)(HWAVEIN a0, LPMMTIME a1, UINT a2) = NULL;
if (funcp == NULL)
funcp = (void*)GetProcAddress(loadRealDLL(), "waveInGetPosition");
return (*funcp)(a0, a1, a2);
}
MMRESULT WINAPI fake_waveInGetID(HWAVEIN a0, LPUINT a1)
{
static MMRESULT(WINAPI *funcp)(HWAVEIN a0, LPUINT a1) = NULL;
if (funcp == NULL)
funcp = (void*)GetProcAddress(loadRealDLL(), "waveInGetID");
return (*funcp)(a0, a1);
}
MMRESULT WINAPI fake_waveInMessage(HWAVEIN a0, UINT a1, DWORD a2, DWORD a3)
{
static MMRESULT(WINAPI *funcp)(HWAVEIN a0, UINT a1, DWORD a2, DWORD a3) = NULL;
if (funcp == NULL)
funcp = (void*)GetProcAddress(loadRealDLL(), "waveInMessage");
return (*funcp)(a0, a1, a2, a3);
}
UINT WINAPI fake_midiOutGetNumDevs()
{
static UINT(WINAPI *funcp)() = NULL;
if (funcp == NULL)
funcp = (void*)GetProcAddress(loadRealDLL(), "midiOutGetNumDevs");
return (*funcp)();
}
MMRESULT WINAPI fake_midiStreamOpen(LPHMIDISTRM a0, LPUINT a1, DWORD a2, DWORD a3, DWORD a4, DWORD a5)
{
static MMRESULT(WINAPI *funcp)(LPHMIDISTRM a0, LPUINT a1, DWORD a2, DWORD a3, DWORD a4, DWORD a5) = NULL;
if (funcp == NULL)
funcp = (void*)GetProcAddress(loadRealDLL(), "midiStreamOpen");
return (*funcp)(a0, a1, a2, a3, a4, a5);
}
MMRESULT WINAPI fake_midiStreamClose(HMIDISTRM a0)
{
static MMRESULT(WINAPI *funcp)(HMIDISTRM a0) = NULL;
if (funcp == NULL)
funcp = (void*)GetProcAddress(loadRealDLL(), "midiStreamClose");
return (*funcp)(a0);
}
MMRESULT WINAPI fake_midiStreamProperty(HMIDISTRM a0, LPBYTE a1, DWORD a2)
{
static MMRESULT(WINAPI *funcp)(HMIDISTRM a0, LPBYTE a1, DWORD a2) = NULL;
if (funcp == NULL)
funcp = (void*)GetProcAddress(loadRealDLL(), "midiStreamProperty");
return (*funcp)(a0, a1, a2);
}
MMRESULT WINAPI fake_midiStreamPosition(HMIDISTRM a0, LPMMTIME a1, UINT a2)
{
static MMRESULT(WINAPI *funcp)(HMIDISTRM a0, LPMMTIME a1, UINT a2) = NULL;
if (funcp == NULL)
funcp = (void*)GetProcAddress(loadRealDLL(), "midiStreamPosition");
return (*funcp)(a0, a1, a2);
}
MMRESULT WINAPI fake_midiStreamPause(HMIDISTRM a0)
{
static MMRESULT(WINAPI *funcp)(HMIDISTRM a0) = NULL;
if (funcp == NULL)
funcp = (void*)GetProcAddress(loadRealDLL(), "midiStreamPause");
return (*funcp)(a0);
}
MMRESULT WINAPI fake_midiStreamRestart(HMIDISTRM a0)
{
static MMRESULT(WINAPI *funcp)(HMIDISTRM a0) = NULL;
if (funcp == NULL)
funcp = (void*)GetProcAddress(loadRealDLL(), "midiStreamRestart");
return (*funcp)(a0);
}
MMRESULT WINAPI fake_midiStreamStop(HMIDISTRM a0)
{
static MMRESULT(WINAPI *funcp)(HMIDISTRM a0) = NULL;
if (funcp == NULL)
funcp = (void*)GetProcAddress(loadRealDLL(), "midiStreamStop");
return (*funcp)(a0);
}
MMRESULT WINAPI fake_midiConnect(HMIDI a0, HMIDIOUT a1, PVOID a2)
{
static MMRESULT(WINAPI *funcp)(HMIDI a0, HMIDIOUT a1, PVOID a2) = NULL;
if (funcp == NULL)
funcp = (void*)GetProcAddress(loadRealDLL(), "midiConnect");
return (*funcp)(a0, a1, a2);
}
MMRESULT WINAPI fake_midiDisconnect(HMIDI a0, HMIDIOUT a1, PVOID a2)
{
static MMRESULT(WINAPI *funcp)(HMIDI a0, HMIDIOUT a1, PVOID a2) = NULL;
if (funcp == NULL)
funcp = (void*)GetProcAddress(loadRealDLL(), "midiDisconnect");
return (*funcp)(a0, a1, a2);
}
MMRESULT WINAPI fake_midiOutGetDevCapsA(UINT a0, LPMIDIOUTCAPSA a1, UINT a2)
{
static MMRESULT(WINAPI *funcp)(UINT a0, LPMIDIOUTCAPSA a1, UINT a2) = NULL;
if (funcp == NULL)
funcp = (void*)GetProcAddress(loadRealDLL(), "midiOutGetDevCapsA");
return (*funcp)(a0, a1, a2);
}
MMRESULT WINAPI fake_midiOutGetDevCapsW(UINT a0, LPMIDIOUTCAPSW a1, UINT a2)
{
static MMRESULT(WINAPI *funcp)(UINT a0, LPMIDIOUTCAPSW a1, UINT a2) = NULL;
if (funcp == NULL)
funcp = (void*)GetProcAddress(loadRealDLL(), "midiOutGetDevCapsW");
return (*funcp)(a0, a1, a2);
}
MMRESULT WINAPI fake_midiOutGetVolume(HMIDIOUT a0, PDWORD a1)
{
static MMRESULT(WINAPI *funcp)(HMIDIOUT a0, PDWORD a1) = NULL;
if (funcp == NULL)
funcp = (void*)GetProcAddress(loadRealDLL(), "midiOutGetVolume");
return (*funcp)(a0, a1);
}
MMRESULT WINAPI fake_midiOutSetVolume(HMIDIOUT a0, DWORD a1)
{
static MMRESULT(WINAPI *funcp)(HMIDIOUT a0, DWORD a1) = NULL;
if (funcp == NULL)
funcp = (void*)GetProcAddress(loadRealDLL(), "midiOutSetVolume");
return (*funcp)(a0, a1);
}
MMRESULT WINAPI fake_midiOutGetErrorTextA(MMRESULT a0, LPSTR a1, UINT a2)
{
static MMRESULT(WINAPI *funcp)(MMRESULT a0, LPSTR a1, UINT a2) = NULL;
if (funcp == NULL)
funcp = (void*)GetProcAddress(loadRealDLL(), "midiOutGetErrorTextA");
return (*funcp)(a0, a1, a2);
}
MMRESULT WINAPI fake_midiOutGetErrorTextW(MMRESULT a0, LPWSTR a1, UINT a2)
{
static MMRESULT(WINAPI *funcp)(MMRESULT a0, LPWSTR a1, UINT a2) = NULL;
if (funcp == NULL)
funcp = (void*)GetProcAddress(loadRealDLL(), "midiOutGetErrorTextW");
return (*funcp)(a0, a1, a2);
}
MMRESULT WINAPI fake_midiOutOpen(LPHMIDIOUT a0, UINT a1, DWORD a2, DWORD a3, DWORD a4)
{
static MMRESULT(WINAPI *funcp)(LPHMIDIOUT a0, UINT a1, DWORD a2, DWORD a3, DWORD a4) = NULL;
if (funcp == NULL)
funcp = (void*)GetProcAddress(loadRealDLL(), "midiOutOpen");
return (*funcp)(a0, a1, a2, a3, a4);
}
MMRESULT WINAPI fake_midiOutClose(HMIDIOUT a0)
{
static MMRESULT(WINAPI *funcp)(HMIDIOUT a0) = NULL;
if (funcp == NULL)
funcp = (void*)GetProcAddress(loadRealDLL(), "midiOutClose");
return (*funcp)(a0);
}
MMRESULT WINAPI fake_midiOutPrepareHeader(HMIDIOUT a0, LPMIDIHDR a1, UINT a2)
{
static MMRESULT(WINAPI *funcp)(HMIDIOUT a0, LPMIDIHDR a1, UINT a2) = NULL;
if (funcp == NULL)
funcp = (void*)GetProcAddress(loadRealDLL(), "midiOutPrepareHeader");
return (*funcp)(a0, a1, a2);
}
MMRESULT WINAPI fake_midiOutUnprepareHeader(HMIDIOUT a0, LPMIDIHDR a1, UINT a2)
{
static MMRESULT(WINAPI *funcp)(HMIDIOUT a0, LPMIDIHDR a1, UINT a2) = NULL;
if (funcp == NULL)
funcp = (void*)GetProcAddress(loadRealDLL(), "midiOutUnprepareHeader");
return (*funcp)(a0, a1, a2);
}
MMRESULT WINAPI fake_midiOutShortMsg(HMIDIOUT a0, DWORD a1)
{
static MMRESULT(WINAPI *funcp)(HMIDIOUT a0, DWORD a1) = NULL;
if (funcp == NULL)
funcp = (void*)GetProcAddress(loadRealDLL(), "midiOutShortMsg");
return (*funcp)(a0, a1);
}
MMRESULT WINAPI fake_midiOutLongMsg(HMIDIOUT a0, LPMIDIHDR a1, UINT a2)
{
static MMRESULT(WINAPI *funcp)(HMIDIOUT a0, LPMIDIHDR a1, UINT a2) = NULL;
if (funcp == NULL)
funcp = (void*)GetProcAddress(loadRealDLL(), "midiOutLongMsg");
return (*funcp)(a0, a1, a2);
}
MMRESULT WINAPI fake_midiOutReset(HMIDIOUT a0)
{
static MMRESULT(WINAPI *funcp)(HMIDIOUT a0) = NULL;
if (funcp == NULL)
funcp = (void*)GetProcAddress(loadRealDLL(), "midiOutReset");
return (*funcp)(a0);
}
MMRESULT WINAPI fake_midiOutCachePatches(HMIDIOUT a0, UINT a1, LPWORD a2, UINT a3)
{
static MMRESULT(WINAPI *funcp)(HMIDIOUT a0, UINT a1, LPWORD a2, UINT a3) = NULL;
if (funcp == NULL)
funcp = (void*)GetProcAddress(loadRealDLL(), "midiOutCachePatches");
return (*funcp)(a0, a1, a2, a3);
}
MMRESULT WINAPI fake_midiOutCacheDrumPatches(HMIDIOUT a0, UINT a1, LPWORD a2, UINT a3)
{
static MMRESULT(WINAPI *funcp)(HMIDIOUT a0, UINT a1, LPWORD a2, UINT a3) = NULL;
if (funcp == NULL)
funcp = (void*)GetProcAddress(loadRealDLL(), "midiOutCacheDrumPatches");
return (*funcp)(a0, a1, a2, a3);
}
MMRESULT WINAPI fake_midiOutGetID(HMIDIOUT a0, LPUINT a1)
{
static MMRESULT(WINAPI *funcp)(HMIDIOUT a0, LPUINT a1) = NULL;
if (funcp == NULL)
funcp = (void*)GetProcAddress(loadRealDLL(), "midiOutGetID");
return (*funcp)(a0, a1);
}
MMRESULT WINAPI fake_midiOutMessage(HMIDIOUT a0, UINT a1, DWORD a2, DWORD a3)
{
static MMRESULT(WINAPI *funcp)(HMIDIOUT a0, UINT a1, DWORD a2, DWORD a3) = NULL;
if (funcp == NULL)
funcp = (void*)GetProcAddress(loadRealDLL(), "midiOutMessage");
return (*funcp)(a0, a1, a2, a3);
}
UINT WINAPI fake_midiInGetNumDevs()
{
static UINT(WINAPI *funcp)() = NULL;
if (funcp == NULL)
funcp = (void*)GetProcAddress(loadRealDLL(), "midiInGetNumDevs");
return (*funcp)();
}
MMRESULT WINAPI fake_midiInGetDevCapsA(UINT a0, LPMIDIINCAPSA a1, UINT a2)
{
static MMRESULT(WINAPI *funcp)(UINT a0, LPMIDIINCAPSA a1, UINT a2) = NULL;
if (funcp == NULL)
funcp = (void*)GetProcAddress(loadRealDLL(), "midiInGetDevCapsA");
return (*funcp)(a0, a1, a2);
}
MMRESULT WINAPI fake_midiInGetDevCapsW(UINT a0, LPMIDIINCAPSW a1, UINT a2)
{
static MMRESULT(WINAPI *funcp)(UINT a0, LPMIDIINCAPSW a1, UINT a2) = NULL;
if (funcp == NULL)
funcp = (void*)GetProcAddress(loadRealDLL(), "midiInGetDevCapsW");
return (*funcp)(a0, a1, a2);
}
MMRESULT WINAPI fake_midiInGetErrorTextA(MMRESULT a0, LPSTR a1, UINT a2)
{
static MMRESULT(WINAPI *funcp)(MMRESULT a0, LPSTR a1, UINT a2) = NULL;
if (funcp == NULL)
funcp = (void*)GetProcAddress(loadRealDLL(), "midiInGetErrorTextA");
return (*funcp)(a0, a1, a2);
}
MMRESULT WINAPI fake_midiInGetErrorTextW(MMRESULT a0, LPWSTR a1, UINT a2)
{
static MMRESULT(WINAPI *funcp)(MMRESULT a0, LPWSTR a1, UINT a2) = NULL;
if (funcp == NULL)
funcp = (void*)GetProcAddress(loadRealDLL(), "midiInGetErrorTextW");
return (*funcp)(a0, a1, a2);
}
MMRESULT WINAPI fake_midiInOpen(LPHMIDIIN a0, UINT a1, DWORD a2, DWORD a3, DWORD a4)
{
static MMRESULT(WINAPI *funcp)(LPHMIDIIN a0, UINT a1, DWORD a2, DWORD a3, DWORD a4) = NULL;
if (funcp == NULL)
funcp = (void*)GetProcAddress(loadRealDLL(), "midiInOpen");
return (*funcp)(a0, a1, a2, a3, a4);
}
MMRESULT WINAPI fake_midiInClose(HMIDIIN a0)
{
static MMRESULT(WINAPI *funcp)(HMIDIIN a0) = NULL;
if (funcp == NULL)
funcp = (void*)GetProcAddress(loadRealDLL(), "midiInClose");
return (*funcp)(a0);
}
MMRESULT WINAPI fake_midiInPrepareHeader(HMIDIIN a0, LPMIDIHDR a1, UINT a2)
{
static MMRESULT(WINAPI *funcp)(HMIDIIN a0, LPMIDIHDR a1, UINT a2) = NULL;
if (funcp == NULL)
funcp = (void*)GetProcAddress(loadRealDLL(), "midiInPrepareHeader");
return (*funcp)(a0, a1, a2);
}
MMRESULT WINAPI fake_midiInUnprepareHeader(HMIDIIN a0, LPMIDIHDR a1, UINT a2)
{
static MMRESULT(WINAPI *funcp)(HMIDIIN a0, LPMIDIHDR a1, UINT a2) = NULL;
if (funcp == NULL)
funcp = (void*)GetProcAddress(loadRealDLL(), "midiInUnprepareHeader");
return (*funcp)(a0, a1, a2);
}
MMRESULT WINAPI fake_midiInAddBuffer(HMIDIIN a0, LPMIDIHDR a1, UINT a2)
{
static MMRESULT(WINAPI *funcp)(HMIDIIN a0, LPMIDIHDR a1, UINT a2) = NULL;
if (funcp == NULL)
funcp = (void*)GetProcAddress(loadRealDLL(), "midiInAddBuffer");
return (*funcp)(a0, a1, a2);
}
MMRESULT WINAPI fake_midiInStart(HMIDIIN a0)
{
static MMRESULT(WINAPI *funcp)(HMIDIIN a0) = NULL;
if (funcp == NULL)
funcp = (void*)GetProcAddress(loadRealDLL(), "midiInStart");
return (*funcp)(a0);
}
MMRESULT WINAPI fake_midiInStop(HMIDIIN a0)
{
static MMRESULT(WINAPI *funcp)(HMIDIIN a0) = NULL;
if (funcp == NULL)
funcp = (void*)GetProcAddress(loadRealDLL(), "midiInStop");
return (*funcp)(a0);
}
MMRESULT WINAPI fake_midiInReset(HMIDIIN a0)
{
static MMRESULT(WINAPI *funcp)(HMIDIIN a0) = NULL;
if (funcp == NULL)
funcp = (void*)GetProcAddress(loadRealDLL(), "midiInReset");
return (*funcp)(a0);
}
MMRESULT WINAPI fake_midiInGetID(HMIDIIN a0, LPUINT a1)
{
static MMRESULT(WINAPI *funcp)(HMIDIIN a0, LPUINT a1) = NULL;
if (funcp == NULL)
funcp = (void*)GetProcAddress(loadRealDLL(), "midiInGetID");
return (*funcp)(a0, a1);
}
MMRESULT WINAPI fake_midiInMessage(HMIDIIN a0, UINT a1, DWORD a2, DWORD a3)
{
static MMRESULT(WINAPI *funcp)(HMIDIIN a0, UINT a1, DWORD a2, DWORD a3) = NULL;
if (funcp == NULL)
funcp = (void*)GetProcAddress(loadRealDLL(), "midiInMessage");
return (*funcp)(a0, a1, a2, a3);
}
MMRESULT WINAPI fake_auxGetDevCapsW(UINT a0, LPAUXCAPSW a1, UINT a2)
{
static MMRESULT(WINAPI *funcp)(UINT a0, LPAUXCAPSW a1, UINT a2) = NULL;
if (funcp == NULL)
funcp = (void*)GetProcAddress(loadRealDLL(), "auxGetDevCapsW");
return (*funcp)(a0, a1, a2);
}
MMRESULT WINAPI fake_auxOutMessage(UINT a0, UINT a1, DWORD a2, DWORD a3)
{
static MMRESULT(WINAPI *funcp)(UINT a0, UINT a1, DWORD a2, DWORD a3) = NULL;
if (funcp == NULL)
funcp = (void*)GetProcAddress(loadRealDLL(), "auxOutMessage");
return (*funcp)(a0, a1, a2, a3);
}
UINT WINAPI fake_mixerGetNumDevs()
{
static UINT(WINAPI *funcp)() = NULL;
if (funcp == NULL)
funcp = (void*)GetProcAddress(loadRealDLL(), "mixerGetNumDevs");
return (*funcp)();
}
MMRESULT WINAPI fake_mixerGetDevCapsA(UINT a0, LPMIXERCAPSA a1, UINT a2)
{
static MMRESULT(WINAPI *funcp)(UINT a0, LPMIXERCAPSA a1, UINT a2) = NULL;
if (funcp == NULL)
funcp = (void*)GetProcAddress(loadRealDLL(), "mixerGetDevCapsA");
return (*funcp)(a0, a1, a2);
}
MMRESULT WINAPI fake_mixerGetDevCapsW(UINT a0, LPMIXERCAPSW a1, UINT a2)
{
static MMRESULT(WINAPI *funcp)(UINT a0, LPMIXERCAPSW a1, UINT a2) = NULL;
if (funcp == NULL)
funcp = (void*)GetProcAddress(loadRealDLL(), "mixerGetDevCapsW");
return (*funcp)(a0, a1, a2);
}
MMRESULT WINAPI fake_mixerOpen(LPHMIXER a0, UINT a1, DWORD a2, DWORD a3, DWORD a4)
{
static MMRESULT(WINAPI *funcp)(LPHMIXER a0, UINT a1, DWORD a2, DWORD a3, DWORD a4) = NULL;
if (funcp == NULL)
funcp = (void*)GetProcAddress(loadRealDLL(), "mixerOpen");
return (*funcp)(a0, a1, a2, a3, a4);
}
MMRESULT WINAPI fake_mixerClose(HMIXER a0)
{
static MMRESULT(WINAPI *funcp)(HMIXER a0) = NULL;
if (funcp == NULL)
funcp = (void*)GetProcAddress(loadRealDLL(), "mixerClose");
return (*funcp)(a0);
}
DWORD WINAPI fake_mixerMessage(HMIXER a0, UINT a1, DWORD a2, DWORD a3)
{
static DWORD(WINAPI *funcp)(HMIXER a0, UINT a1, DWORD a2, DWORD a3) = NULL;
if (funcp == NULL)
funcp = (void*)GetProcAddress(loadRealDLL(), "mixerMessage");
return (*funcp)(a0, a1, a2, a3);
}
MMRESULT WINAPI fake_mixerGetLineInfoA(HMIXEROBJ a0, LPMIXERLINEA a1, DWORD a2)
{
static MMRESULT(WINAPI *funcp)(HMIXEROBJ a0, LPMIXERLINEA a1, DWORD a2) = NULL;
if (funcp == NULL)
funcp = (void*)GetProcAddress(loadRealDLL(), "mixerGetLineInfoA");
return (*funcp)(a0, a1, a2);
}
MMRESULT WINAPI fake_mixerGetLineInfoW(HMIXEROBJ a0, LPMIXERLINEW a1, DWORD a2)
{
static MMRESULT(WINAPI *funcp)(HMIXEROBJ a0, LPMIXERLINEW a1, DWORD a2) = NULL;
if (funcp == NULL)
funcp = (void*)GetProcAddress(loadRealDLL(), "mixerGetLineInfoW");
return (*funcp)(a0, a1, a2);
}
MMRESULT WINAPI fake_mixerGetID(HMIXEROBJ a0, PUINT a1, DWORD a2)
{
static MMRESULT(WINAPI *funcp)(HMIXEROBJ a0, PUINT a1, DWORD a2) = NULL;
if (funcp == NULL)
funcp = (void*)GetProcAddress(loadRealDLL(), "mixerGetID");
return (*funcp)(a0, a1, a2);
}
MMRESULT WINAPI fake_mixerGetLineControlsA(HMIXEROBJ a0, LPMIXERLINECONTROLSA a1, DWORD a2)
{
static MMRESULT(WINAPI *funcp)(HMIXEROBJ a0, LPMIXERLINECONTROLSA a1, DWORD a2) = NULL;
if (funcp == NULL)
funcp = (void*)GetProcAddress(loadRealDLL(), "mixerGetLineControlsA");
return (*funcp)(a0, a1, a2);
}
MMRESULT WINAPI fake_mixerGetLineControlsW(HMIXEROBJ a0, LPMIXERLINECONTROLSW a1, DWORD a2)
{
static MMRESULT(WINAPI *funcp)(HMIXEROBJ a0, LPMIXERLINECONTROLSW a1, DWORD a2) = NULL;
if (funcp == NULL)
funcp = (void*)GetProcAddress(loadRealDLL(), "mixerGetLineControlsW");
return (*funcp)(a0, a1, a2);
}
MMRESULT WINAPI fake_mixerGetControlDetailsA(HMIXEROBJ a0, LPMIXERCONTROLDETAILS a1, DWORD a2)
{
static MMRESULT(WINAPI *funcp)(HMIXEROBJ a0, LPMIXERCONTROLDETAILS a1, DWORD a2) = NULL;
if (funcp == NULL)
funcp = (void*)GetProcAddress(loadRealDLL(), "mixerGetControlDetailsA");
return (*funcp)(a0, a1, a2);
}
MMRESULT WINAPI fake_mixerGetControlDetailsW(HMIXEROBJ a0, LPMIXERCONTROLDETAILS a1, DWORD a2)
{
static MMRESULT(WINAPI *funcp)(HMIXEROBJ a0, LPMIXERCONTROLDETAILS a1, DWORD a2) = NULL;
if (funcp == NULL)
funcp = (void*)GetProcAddress(loadRealDLL(), "mixerGetControlDetailsW");
return (*funcp)(a0, a1, a2);
}
MMRESULT WINAPI fake_mixerSetControlDetails(HMIXEROBJ a0, LPMIXERCONTROLDETAILS a1, DWORD a2)
{
static MMRESULT(WINAPI *funcp)(HMIXEROBJ a0, LPMIXERCONTROLDETAILS a1, DWORD a2) = NULL;
if (funcp == NULL)
funcp = (void*)GetProcAddress(loadRealDLL(), "mixerSetControlDetails");