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
5c8fb168
Commit
5c8fb168
authored
Jun 04, 2005
by
Robert Reif
Committed by
Alexandre Julliard
Jun 04, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Finish DirectSoundCapture/DirectSoundCapture8 split.
Add tests to verify split.
parent
cb6e4a12
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
26 additions
and
6 deletions
+26
-6
capture.c
dlls/dsound/capture.c
+0
-0
dsound.spec
dlls/dsound/dsound.spec
+1
-1
dsound_main.c
dlls/dsound/dsound_main.c
+1
-0
dsound_private.h
dlls/dsound/dsound_private.h
+20
-1
propset.c
dlls/dsound/propset.c
+3
-3
dsound.h
include/dsound.h
+1
-1
No files found.
dlls/dsound/capture.c
View file @
5c8fb168
This diff is collapsed.
Click to expand it.
dlls/dsound/dsound.spec
View file @
5c8fb168
1 stdcall DirectSoundCreate(ptr ptr ptr)
2 stdcall DirectSoundEnumerateA(ptr ptr)
3 stdcall DirectSoundEnumerateW(ptr ptr)
6 stdcall DirectSoundCaptureCreate(ptr ptr ptr)
DirectSoundCaptureCreate8
6 stdcall DirectSoundCaptureCreate(ptr ptr ptr)
7 stdcall DirectSoundCaptureEnumerateA(ptr ptr)
8 stdcall DirectSoundCaptureEnumerateW(ptr ptr)
9 stdcall GetDeviceID(ptr ptr)
...
...
dlls/dsound/dsound_main.c
View file @
5c8fb168
...
...
@@ -665,6 +665,7 @@ BOOL WINAPI DllMain(HINSTANCE hInstDLL, DWORD fdwReason, LPVOID lpvReserved)
TRACE
(
"DLL_PROCESS_ATTACH
\n
"
);
for
(
i
=
0
;
i
<
MAXWAVEDRIVERS
;
i
++
)
{
DSOUND_renderer
[
i
]
=
NULL
;
DSOUND_capture
[
i
]
=
NULL
;
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
);
}
...
...
dlls/dsound/dsound_private.h
View file @
5c8fb168
...
...
@@ -64,6 +64,7 @@ typedef struct PrimaryBufferImpl PrimaryBufferImpl;
typedef
struct
SecondaryBufferImpl
SecondaryBufferImpl
;
typedef
struct
IClassFactoryImpl
IClassFactoryImpl
;
typedef
struct
DirectSoundDevice
DirectSoundDevice
;
typedef
struct
DirectSoundCaptureDevice
DirectSoundCaptureDevice
;
/*****************************************************************************
* IDirectSound implementation structure
...
...
@@ -280,9 +281,14 @@ struct IDirectSoundCaptureImpl
const
IDirectSoundCaptureVtbl
*
lpVtbl
;
DWORD
ref
;
DirectSoundCaptureDevice
*
device
;
};
struct
DirectSoundCaptureDevice
{
/* IDirectSoundCaptureImpl fields */
GUID
guid
;
BOOL
initialized
;
DWORD
ref
;
/* DirectSound driver stuff */
PIDSCDRIVER
driver
;
...
...
@@ -308,6 +314,17 @@ struct IDirectSoundCaptureImpl
CRITICAL_SECTION
lock
;
};
HRESULT
WINAPI
IDirectSoundCaptureImpl_Create
(
LPDIRECTSOUNDCAPTURE8
*
ppds
);
HRESULT
WINAPI
DSOUND_CaptureCreate
(
LPDIRECTSOUNDCAPTURE
*
ppDSC
,
IUnknown
*
pUnkOuter
);
HRESULT
WINAPI
DSOUND_CaptureCreate8
(
LPDIRECTSOUNDCAPTURE8
*
ppDSC8
,
IUnknown
*
pUnkOuter
);
/*****************************************************************************
* IDirectSoundCaptureBuffer implementation structure
*/
...
...
@@ -498,6 +515,8 @@ void DSOUND_Calc3DBuffer(IDirectSoundBufferImpl *dsb);
extern
DirectSoundDevice
*
DSOUND_renderer
[
MAXWAVEDRIVERS
];
extern
GUID
DSOUND_renderer_guids
[
MAXWAVEDRIVERS
];
extern
DirectSoundCaptureDevice
*
DSOUND_capture
[
MAXWAVEDRIVERS
];
extern
GUID
DSOUND_capture_guids
[
MAXWAVEDRIVERS
];
extern
HRESULT
mmErr
(
UINT
err
);
...
...
dlls/dsound/propset.c
View file @
5c8fb168
...
...
@@ -688,7 +688,7 @@ static HRESULT WINAPI DSPROPERTY_DescriptionA(
if
(
err
==
DS_OK
&&
drv
)
ppd
->
Type
=
DIRECTSOUNDDEVICE_TYPE_VXD
;
else
WARN
(
"wave
Out
Message(DRV_QUERYDSOUNDIFACE) failed
\n
"
);
WARN
(
"wave
In
Message(DRV_QUERYDSOUNDIFACE) failed
\n
"
);
break
;
}
else
{
WARN
(
"no memory
\n
"
);
...
...
@@ -784,7 +784,7 @@ static HRESULT WINAPI DSPROPERTY_DescriptionA(
if
(
err
==
DS_OK
&&
drv
)
ppd
->
Type
=
DIRECTSOUNDDEVICE_TYPE_VXD
;
else
WARN
(
"wave
Out
Message(DRV_QUERYDSOUNDIFACE) failed
\n
"
);
WARN
(
"wave
In
Message(DRV_QUERYDSOUNDIFACE) failed
\n
"
);
found
=
TRUE
;
break
;
}
else
{
...
...
@@ -1508,7 +1508,7 @@ HRESULT WINAPI IKsPrivatePropertySetImpl_Create(
IKsPrivatePropertySetImpl
*
iks
;
iks
=
HeapAlloc
(
GetProcessHeap
(),
0
,
sizeof
(
*
iks
));
iks
->
ref
=
0
;
iks
->
ref
=
1
;
iks
->
lpVtbl
=
&
ikspvt
;
*
piks
=
iks
;
...
...
include/dsound.h
View file @
5c8fb168
...
...
@@ -401,7 +401,7 @@ extern HRESULT WINAPI DirectSoundCaptureEnumerateA(LPDSENUMCALLBACKA, LPVOID);
extern
HRESULT
WINAPI
DirectSoundCaptureEnumerateW
(
LPDSENUMCALLBACKW
,
LPVOID
);
extern
HRESULT
WINAPI
DirectSoundCreate8
(
LPCGUID
lpGUID
,
LPDIRECTSOUND8
*
ppDS8
,
LPUNKNOWN
pUnkOuter
);
extern
HRESULT
WINAPI
DirectSoundCaptureCreate8
(
LPCGUID
lpGUID
,
LPDIRECTSOUNDCAPTURE
*
ppDSC8
,
LPUNKNOWN
pUnkOuter
);
extern
HRESULT
WINAPI
DirectSoundCaptureCreate8
(
LPCGUID
lpGUID
,
LPDIRECTSOUNDCAPTURE
8
*
ppDSC8
,
LPUNKNOWN
pUnkOuter
);
extern
HRESULT
WINAPI
DirectSoundFullDuplexCreate
(
LPCGUID
pcGuidCaptureDevice
,
LPCGUID
pcGuidRenderDevice
,
LPCDSCBUFFERDESC
pcDSCBufferDesc
,
LPCDSBUFFERDESC
pcDSBufferDesc
,
HWND
hWnd
,
DWORD
dwLevel
,
LPDIRECTSOUNDFULLDUPLEX
*
ppDSFD
,
LPDIRECTSOUNDCAPTUREBUFFER8
*
ppDSCBuffer8
,
LPDIRECTSOUNDBUFFER8
*
ppDSBuffer8
,
LPUNKNOWN
pUnkOuter
);
...
...
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