Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-cw
Commits
b3c307fb
Commit
b3c307fb
authored
Dec 03, 2010
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dsound: Convert dll registration to the IRegistrar mechanism.
parent
f5090d26
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
82 additions
and
1 deletion
+82
-1
Makefile.in
dlls/dsound/Makefile.in
+2
-1
dsound_classes.idl
dlls/dsound/dsound_classes.idl
+61
-0
dsound_main.c
dlls/dsound/dsound_main.c
+19
-0
regsvr.c
dlls/dsound/regsvr.c
+0
-0
No files found.
dlls/dsound/Makefile.in
View file @
b3c307fb
...
@@ -12,9 +12,10 @@ C_SRCS = \
...
@@ -12,9 +12,10 @@ C_SRCS = \
mixer.c
\
mixer.c
\
primary.c
\
primary.c
\
propset.c
\
propset.c
\
regsvr.c
\
sound3d.c
sound3d.c
IDL_R_SRCS
=
dsound_classes.idl
RC_SRCS
=
version.rc
RC_SRCS
=
version.rc
@MAKE_DLL_RULES@
@MAKE_DLL_RULES@
dlls/dsound/dsound_classes.idl
0 → 100644
View file @
b3c307fb
/*
*
COM
Classes
for
dsound
*
*
Copyright
2010
Alexandre
Julliard
*
*
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
*/
[
helpstring
(
"DirectSound Object"
),
threading
(
both
),
uuid
(
47
d4d946
-
62
e8
-
11
cf
-
93b
c
-
444553540000
)
]
coclass
DirectSound
{
interface
IDirectSound
; }
[
helpstring
(
"DirectSound 8.0 Object"
),
threading
(
both
),
uuid
(
3901
cc3f
-
84b5
-
4
fa4
-
ba35
-
aa8172b8a09b
)
]
coclass
DirectSound8
{
interface
IDirectSound8
; }
[
helpstring
(
"DirectSoundBufferConfig Object"
),
threading
(
both
),
uuid
(
b2f586d4
-
5558
-
49
d1
-
a07b
-
3249
dbbb33c2
)
]
coclass
DirectSoundBufferConfig
{
interface
IDirectSoundBufferConfig
; }
[
helpstring
(
"DirectSoundCapture Object"
),
threading
(
both
),
uuid
(
b0210780
-
89
cd
-
11
d0
-
af08
-
00
a0c925cd16
)
]
coclass
DirectSoundCapture
{
interface
IDirectSoundCapture
; }
[
helpstring
(
"DirectSoundCapture 8.0 Object"
),
threading
(
both
),
uuid
(
e4bcac13
-
7
f99
-
4908
-
9
a8e
-
74
e3bf24b6e1
)
]
coclass
DirectSoundCapture8
{
interface
IDirectSoundCapture8
; }
[
helpstring
(
"DirectSoundFullDuplex Object"
),
threading
(
both
),
uuid
(
fea4300c
-
7959
-
4147
-
b26a
-
2377b9
e7a91d
)
]
coclass
DirectSoundFullDuplex
{
interface
IDirectSoundFullDuplex
; }
dlls/dsound/dsound_main.c
View file @
b3c307fb
...
@@ -49,6 +49,7 @@
...
@@ -49,6 +49,7 @@
#include "dsound.h"
#include "dsound.h"
#include "dsconf.h"
#include "dsconf.h"
#include "ks.h"
#include "ks.h"
#include "rpcproxy.h"
#include "initguid.h"
#include "initguid.h"
#include "ksmedia.h"
#include "ksmedia.h"
#include "dsdriver.h"
#include "dsdriver.h"
...
@@ -99,6 +100,7 @@ int ds_default_sample_rate = 44100;
...
@@ -99,6 +100,7 @@ int ds_default_sample_rate = 44100;
int
ds_default_bits_per_sample
=
16
;
int
ds_default_bits_per_sample
=
16
;
static
int
ds_default_playback
;
static
int
ds_default_playback
;
static
int
ds_default_capture
;
static
int
ds_default_capture
;
static
HINSTANCE
instance
;
/*
/*
* Get a config key from either the app-specific or the default config
* Get a config key from either the app-specific or the default config
...
@@ -669,6 +671,7 @@ BOOL WINAPI DllMain(HINSTANCE hInstDLL, DWORD fdwReason, LPVOID lpvReserved)
...
@@ -669,6 +671,7 @@ BOOL WINAPI DllMain(HINSTANCE hInstDLL, DWORD fdwReason, LPVOID lpvReserved)
INIT_GUID
(
DSOUND_renderer_guids
[
i
],
0xbd6dd71a
,
0x3deb
,
0x11d1
,
0xb1
,
0x71
,
0x00
,
0xc0
,
0x4f
,
0xc2
,
0x00
,
0x00
+
i
);
INIT_GUID
(
DSOUND_renderer_guids
[
i
],
0xbd6dd71a
,
0x3deb
,
0x11d1
,
0xb1
,
0x71
,
0x00
,
0xc0
,
0x4f
,
0xc2
,
0x00
,
0x00
+
i
);
INIT_GUID
(
DSOUND_capture_guids
[
i
],
0xbd6dd71b
,
0x3deb
,
0x11d1
,
0xb1
,
0x71
,
0x00
,
0xc0
,
0x4f
,
0xc2
,
0x00
,
0x00
+
i
);
INIT_GUID
(
DSOUND_capture_guids
[
i
],
0xbd6dd71b
,
0x3deb
,
0x11d1
,
0xb1
,
0x71
,
0x00
,
0xc0
,
0x4f
,
0xc2
,
0x00
,
0x00
+
i
);
}
}
instance
=
hInstDLL
;
DisableThreadLibraryCalls
(
hInstDLL
);
DisableThreadLibraryCalls
(
hInstDLL
);
/* Increase refcount on dsound by 1 */
/* Increase refcount on dsound by 1 */
GetModuleHandleExW
(
GET_MODULE_HANDLE_EX_FLAG_FROM_ADDRESS
,
(
LPCWSTR
)
hInstDLL
,
&
hInstDLL
);
GetModuleHandleExW
(
GET_MODULE_HANDLE_EX_FLAG_FROM_ADDRESS
,
(
LPCWSTR
)
hInstDLL
,
&
hInstDLL
);
...
@@ -682,3 +685,19 @@ BOOL WINAPI DllMain(HINSTANCE hInstDLL, DWORD fdwReason, LPVOID lpvReserved)
...
@@ -682,3 +685,19 @@ BOOL WINAPI DllMain(HINSTANCE hInstDLL, DWORD fdwReason, LPVOID lpvReserved)
}
}
return
TRUE
;
return
TRUE
;
}
}
/***********************************************************************
* DllRegisterServer (DSOUND.@)
*/
HRESULT
WINAPI
DllRegisterServer
(
void
)
{
return
__wine_register_resources
(
instance
,
NULL
);
}
/***********************************************************************
* DllUnregisterServer (DSOUND.@)
*/
HRESULT
WINAPI
DllUnregisterServer
(
void
)
{
return
__wine_unregister_resources
(
instance
,
NULL
);
}
dlls/dsound/regsvr.c
deleted
100644 → 0
View file @
f5090d26
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment