mirrored from git://source.winehq.org/git/wine.git
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Andrew Eikum <aeikum@codeweavers.com>
- Loading branch information
Showing
8 changed files
with
103 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
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
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,7 @@ | ||
MODULE = xaudio2_6.dll | ||
IMPORTS = ole32 | ||
|
||
C_SRCS = \ | ||
xaudio_dll.c | ||
|
||
IDL_SRCS = xaudio_classes.idl |
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 @@ | ||
@ stdcall -private DllCanUnloadNow() | ||
@ stdcall -private DllGetClassObject(ptr ptr ptr) xaudio2_7.DllGetClassObject | ||
@ stdcall -private DllRegisterServer() | ||
@ stdcall -private DllUnregisterServer() |
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,28 @@ | ||
/* | ||
* COM Classes for xaudio | ||
* | ||
* Copyright 2015 Andrew Eikum for CodeWeavers | ||
* | ||
* This library is free software; you can redistribute it and/or | ||
* modify it under the terms of the GNU Lesser General Public | ||
* License as published by the Free Software Foundation; either | ||
* version 2.1 of the License, or (at your option) any later version. | ||
* | ||
* This library is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | ||
* Lesser General Public License for more details. | ||
* | ||
* You should have received a copy of the GNU Lesser General Public | ||
* License along with this library; if not, write to the Free Software | ||
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA | ||
*/ | ||
|
||
#pragma makedep register | ||
|
||
[ | ||
helpstring("XAudio2.6 Class"), | ||
threading(both), | ||
uuid(3eda9b49-2085-498b-9bb2-39a6778493de) | ||
] | ||
coclass XAudio26 { interface IXAudio27; } |
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,52 @@ | ||
/* | ||
* Copyright (c) 2015 Andrew Eikum for CodeWeavers | ||
* | ||
* This library is free software; you can redistribute it and/or | ||
* modify it under the terms of the GNU Lesser General Public | ||
* License as published by the Free Software Foundation; either | ||
* version 2.1 of the License, or (at your option) any later version. | ||
* | ||
* This library is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | ||
* Lesser General Public License for more details. | ||
* | ||
* You should have received a copy of the GNU Lesser General Public | ||
* License along with this library; if not, write to the Free Software | ||
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA | ||
*/ | ||
|
||
#include <stdarg.h> | ||
#include "windef.h" | ||
#include "winbase.h" | ||
#include "objbase.h" | ||
#include "rpcproxy.h" | ||
|
||
static HINSTANCE instance; | ||
|
||
BOOL WINAPI DllMain(HINSTANCE hinstance, DWORD reason, LPVOID reserved) | ||
{ | ||
switch (reason) | ||
{ | ||
case DLL_PROCESS_ATTACH: | ||
instance = hinstance; | ||
DisableThreadLibraryCalls(hinstance); | ||
break; | ||
} | ||
return TRUE; | ||
} | ||
|
||
HRESULT WINAPI DllCanUnloadNow(void) | ||
{ | ||
return S_FALSE; | ||
} | ||
|
||
HRESULT WINAPI DllRegisterServer(void) | ||
{ | ||
return __wine_register_resources(instance); | ||
} | ||
|
||
HRESULT WINAPI DllUnregisterServer(void) | ||
{ | ||
return __wine_unregister_resources(instance); | ||
} |
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
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