-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Initial (and final I suppose) commit
- Loading branch information
0 parents
commit 7762ec7
Showing
7 changed files
with
2,397 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
set(CMAKE_GENERATOR_PLATFORM "Win32" CACHE STRING "" FORCE) | ||
PROJECT(winmm) | ||
ENABLE_LANGUAGE(C CXX) | ||
ADD_LIBRARY(winmm SHARED winmm.cpp winmm.def empty.h hook_macro.h) |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
#include "hook_macro.h" | ||
|
||
#define WAVEOUTSETVOLUME | ||
|
||
#include <Windows.h> | ||
|
||
FAKE(MMRESULT, __stdcall, waveOutSetVolume, HWAVEOUT hwo, DWORD dwVolume) { // currently, the parsing code only support __cdecl functions. | ||
return 0; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
#ifndef _HOOK_MACRO_H | ||
#define _HOOK_MACRO_H | ||
|
||
#define DECL_FN_PTR(RETTYPE, CONVENTION, FN_NAME, ...) \ | ||
typedef RETTYPE (CONVENTION *FN_NAME##_ptr)(__VA_ARGS__) | ||
#define FAKE(RETTYPE, CONVENTION, FN_NAME, ...) \ | ||
DECL_FN_PTR(RETTYPE, CONVENTION, FN_NAME, __VA_ARGS__); \ | ||
FN_NAME##_ptr FN_NAME##_real; \ | ||
RETTYPE CONVENTION FN_NAME##_fake(__VA_ARGS__) | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
This is just a winmm.dll-wrapper that ignores waveOutSetVolume-calls to sidestep a problem in DeliPlayer. Wrapper-code was generated via wrap_dll. |
Oops, something went wrong.