Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
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-winehq
Commits
0c488e76
Commit
0c488e76
authored
Oct 27, 2005
by
Robert Reif
Committed by
Alexandre Julliard
Oct 27, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove unused variable from IDirectSoundFullDuplexImpl.
Move DirectSoundFullDuplexCreate to get rid of forward declarations.
parent
a51f2bec
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
65 additions
and
84 deletions
+65
-84
dsound_private.h
dlls/dsound/dsound_private.h
+0
-1
duplex.c
dlls/dsound/duplex.c
+65
-83
No files found.
dlls/dsound/dsound_private.h
View file @
0c488e76
...
...
@@ -357,7 +357,6 @@ struct IDirectSoundFullDuplexImpl
LONG
ref
;
/* IDirectSoundFullDuplexImpl fields */
CRITICAL_SECTION
lock
;
};
/*****************************************************************************
...
...
dlls/dsound/duplex.c
View file @
0c488e76
...
...
@@ -43,7 +43,49 @@
WINE_DEFAULT_DEBUG_CHANNEL
(
dsound
);
static
HRESULT
WINAPI
IDirectSoundFullDuplexImpl_Initialize
(
static
HRESULT
WINAPI
IDirectSoundFullDuplexImpl_QueryInterface
(
LPDIRECTSOUNDFULLDUPLEX
iface
,
REFIID
riid
,
LPVOID
*
ppobj
)
{
IDirectSoundFullDuplexImpl
*
This
=
(
IDirectSoundFullDuplexImpl
*
)
iface
;
TRACE
(
"(%p,%s,%p)
\n
"
,
This
,
debugstr_guid
(
riid
),
ppobj
);
if
(
ppobj
==
NULL
)
{
WARN
(
"invalid parameter
\n
"
);
return
E_INVALIDARG
;
}
*
ppobj
=
NULL
;
return
E_NOINTERFACE
;
}
static
ULONG
WINAPI
IDirectSoundFullDuplexImpl_AddRef
(
LPDIRECTSOUNDFULLDUPLEX
iface
)
{
IDirectSoundFullDuplexImpl
*
This
=
(
IDirectSoundFullDuplexImpl
*
)
iface
;
ULONG
ref
=
InterlockedIncrement
(
&
(
This
->
ref
));
TRACE
(
"(%p) ref was %ld
\n
"
,
This
,
ref
-
1
);
return
ref
;
}
static
ULONG
WINAPI
IDirectSoundFullDuplexImpl_Release
(
LPDIRECTSOUNDFULLDUPLEX
iface
)
{
IDirectSoundFullDuplexImpl
*
This
=
(
IDirectSoundFullDuplexImpl
*
)
iface
;
ULONG
ref
=
InterlockedDecrement
(
&
(
This
->
ref
));
TRACE
(
"(%p) ref was %ld
\n
"
,
This
,
ref
-
1
);
if
(
!
ref
)
{
HeapFree
(
GetProcessHeap
(),
0
,
This
);
TRACE
(
"(%p) released
\n
"
,
This
);
}
return
ref
;
}
static
HRESULT
WINAPI
IDirectSoundFullDuplexImpl_Initialize
(
LPDIRECTSOUNDFULLDUPLEX
iface
,
LPCGUID
pCaptureGuid
,
LPCGUID
pRendererGuid
,
...
...
@@ -52,9 +94,29 @@ static HRESULT WINAPI IDirectSoundFullDuplexImpl_Initialize(
HWND
hWnd
,
DWORD
dwLevel
,
LPLPDIRECTSOUNDCAPTUREBUFFER8
lplpDirectSoundCaptureBuffer8
,
LPLPDIRECTSOUNDBUFFER8
lplpDirectSoundBuffer8
);
LPLPDIRECTSOUNDBUFFER8
lplpDirectSoundBuffer8
)
{
IDirectSoundFullDuplexImpl
*
This
=
(
IDirectSoundFullDuplexImpl
*
)
iface
;
IDirectSoundCaptureBufferImpl
**
ippdscb
=
(
IDirectSoundCaptureBufferImpl
**
)
lplpDirectSoundCaptureBuffer8
;
IDirectSoundBufferImpl
**
ippdsc
=
(
IDirectSoundBufferImpl
**
)
lplpDirectSoundBuffer8
;
static
const
IDirectSoundFullDuplexVtbl
dsfdvt
;
FIXME
(
"(%p,%s,%s,%p,%p,%p,%lx,%p,%p) stub!
\n
"
,
This
,
debugstr_guid
(
pCaptureGuid
),
debugstr_guid
(
pRendererGuid
),
lpDscBufferDesc
,
lpDsBufferDesc
,
hWnd
,
dwLevel
,
ippdscb
,
ippdsc
);
return
E_FAIL
;
}
static
const
IDirectSoundFullDuplexVtbl
dsfdvt
=
{
/* IUnknown methods */
IDirectSoundFullDuplexImpl_QueryInterface
,
IDirectSoundFullDuplexImpl_AddRef
,
IDirectSoundFullDuplexImpl_Release
,
/* IDirectSoundFullDuplex methods */
IDirectSoundFullDuplexImpl_Initialize
};
/***************************************************************************
* DirectSoundFullDuplexCreate [DSOUND.10]
...
...
@@ -114,9 +176,6 @@ DirectSoundFullDuplexCreate(
This
->
ref
=
1
;
This
->
lpVtbl
=
&
dsfdvt
;
InitializeCriticalSection
(
&
(
This
->
lock
)
);
This
->
lock
.
DebugInfo
->
Spare
[
0
]
=
(
DWORD_PTR
)
"DSDUPLEX_lock"
;
hres
=
IDirectSoundFullDuplexImpl_Initialize
(
(
LPDIRECTSOUNDFULLDUPLEX
)
This
,
pcGuidCaptureDevice
,
pcGuidRenderDevice
,
pcDSCBufferDesc
,
pcDSBufferDesc
,
...
...
@@ -127,83 +186,6 @@ DirectSoundFullDuplexCreate(
}
}
static
HRESULT
WINAPI
IDirectSoundFullDuplexImpl_QueryInterface
(
LPDIRECTSOUNDFULLDUPLEX
iface
,
REFIID
riid
,
LPVOID
*
ppobj
)
{
IDirectSoundFullDuplexImpl
*
This
=
(
IDirectSoundFullDuplexImpl
*
)
iface
;
TRACE
(
"(%p,%s,%p)
\n
"
,
This
,
debugstr_guid
(
riid
),
ppobj
);
if
(
ppobj
==
NULL
)
{
WARN
(
"invalid parameter
\n
"
);
return
E_INVALIDARG
;
}
*
ppobj
=
NULL
;
return
E_NOINTERFACE
;
}
static
ULONG
WINAPI
IDirectSoundFullDuplexImpl_AddRef
(
LPDIRECTSOUNDFULLDUPLEX
iface
)
{
IDirectSoundFullDuplexImpl
*
This
=
(
IDirectSoundFullDuplexImpl
*
)
iface
;
ULONG
ref
=
InterlockedIncrement
(
&
(
This
->
ref
));
TRACE
(
"(%p) ref was %ld
\n
"
,
This
,
ref
-
1
);
return
ref
;
}
static
ULONG
WINAPI
IDirectSoundFullDuplexImpl_Release
(
LPDIRECTSOUNDFULLDUPLEX
iface
)
{
IDirectSoundFullDuplexImpl
*
This
=
(
IDirectSoundFullDuplexImpl
*
)
iface
;
ULONG
ref
=
InterlockedDecrement
(
&
(
This
->
ref
));
TRACE
(
"(%p) ref was %ld
\n
"
,
This
,
ref
-
1
);
if
(
!
ref
)
{
This
->
lock
.
DebugInfo
->
Spare
[
0
]
=
0
;
DeleteCriticalSection
(
&
(
This
->
lock
)
);
HeapFree
(
GetProcessHeap
(),
0
,
This
);
TRACE
(
"(%p) released
\n
"
,
This
);
}
return
ref
;
}
static
HRESULT
WINAPI
IDirectSoundFullDuplexImpl_Initialize
(
LPDIRECTSOUNDFULLDUPLEX
iface
,
LPCGUID
pCaptureGuid
,
LPCGUID
pRendererGuid
,
LPCDSCBUFFERDESC
lpDscBufferDesc
,
LPCDSBUFFERDESC
lpDsBufferDesc
,
HWND
hWnd
,
DWORD
dwLevel
,
LPLPDIRECTSOUNDCAPTUREBUFFER8
lplpDirectSoundCaptureBuffer8
,
LPLPDIRECTSOUNDBUFFER8
lplpDirectSoundBuffer8
)
{
IDirectSoundFullDuplexImpl
*
This
=
(
IDirectSoundFullDuplexImpl
*
)
iface
;
IDirectSoundCaptureBufferImpl
**
ippdscb
=
(
IDirectSoundCaptureBufferImpl
**
)
lplpDirectSoundCaptureBuffer8
;
IDirectSoundBufferImpl
**
ippdsc
=
(
IDirectSoundBufferImpl
**
)
lplpDirectSoundBuffer8
;
FIXME
(
"(%p,%s,%s,%p,%p,%p,%lx,%p,%p) stub!
\n
"
,
This
,
debugstr_guid
(
pCaptureGuid
),
debugstr_guid
(
pRendererGuid
),
lpDscBufferDesc
,
lpDsBufferDesc
,
hWnd
,
dwLevel
,
ippdscb
,
ippdsc
);
return
E_FAIL
;
}
static
const
IDirectSoundFullDuplexVtbl
dsfdvt
=
{
/* IUnknown methods */
IDirectSoundFullDuplexImpl_QueryInterface
,
IDirectSoundFullDuplexImpl_AddRef
,
IDirectSoundFullDuplexImpl_Release
,
/* IDirectSoundFullDuplex methods */
IDirectSoundFullDuplexImpl_Initialize
};
/*******************************************************************************
* DirectSoundFullDuplex ClassFactory
*/
...
...
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