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
db5344e4
Commit
db5344e4
authored
Jul 19, 2012
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Jul 19, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dsound: Drop a redundant 'IDirectSound8' from the method names.
parent
bf4481d3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
34 additions
and
55 deletions
+34
-55
dsound.c
dlls/dsound/dsound.c
+34
-55
No files found.
dlls/dsound/dsound.c
View file @
db5344e4
...
@@ -62,7 +62,6 @@ struct IDirectSound8_IDirectSound8 {
...
@@ -62,7 +62,6 @@ struct IDirectSound8_IDirectSound8 {
};
};
static
HRESULT
IDirectSound8_IDirectSound8_Create
(
LPDIRECTSOUND8
pds
,
LPDIRECTSOUND8
*
ppds
);
static
HRESULT
IDirectSound8_IDirectSound8_Create
(
LPDIRECTSOUND8
pds
,
LPDIRECTSOUND8
*
ppds
);
static
ULONG
WINAPI
IDirectSound8_IDirectSound8_AddRef
(
LPDIRECTSOUND8
iface
);
typedef
struct
IDirectSoundImpl
{
typedef
struct
IDirectSoundImpl
{
IUnknown
IUnknown_iface
;
/* Separate refcount, not for COM aggregation */
IUnknown
IUnknown_iface
;
/* Separate refcount, not for COM aggregation */
...
@@ -183,7 +182,7 @@ static HRESULT DSOUND_QueryInterface(
...
@@ -183,7 +182,7 @@ static HRESULT DSOUND_QueryInterface(
return
E_NOINTERFACE
;
return
E_NOINTERFACE
;
}
}
}
}
IDirectSound8_
IDirectSound8_
AddRef
(
This
->
pDS8
);
IDirectSound8_AddRef
(
This
->
pDS8
);
*
ppobj
=
This
->
pDS8
;
*
ppobj
=
This
->
pDS8
;
return
S_OK
;
return
S_OK
;
}
}
...
@@ -412,20 +411,17 @@ static HRESULT IDirectSound_IDirectSound_Create(
...
@@ -412,20 +411,17 @@ static HRESULT IDirectSound_IDirectSound_Create(
}
}
/*******************************************************************************
/*******************************************************************************
*
IDirectSound8_IDirectSound8
*
IDirectSound8 Implementation
*/
*/
static
HRESULT
WINAPI
IDirectSound8_IDirectSound8_QueryInterface
(
static
HRESULT
WINAPI
IDirectSound8Impl_QueryInterface
(
IDirectSound8
*
iface
,
REFIID
riid
,
LPDIRECTSOUND8
iface
,
void
**
ppobj
)
REFIID
riid
,
LPVOID
*
ppobj
)
{
{
IDirectSound8_IDirectSound8
*
This
=
(
IDirectSound8_IDirectSound8
*
)
iface
;
IDirectSound8_IDirectSound8
*
This
=
(
IDirectSound8_IDirectSound8
*
)
iface
;
TRACE
(
"(%p,%s,%p)
\n
"
,
This
,
debugstr_guid
(
riid
),
ppobj
);
TRACE
(
"(%p,%s,%p)
\n
"
,
This
,
debugstr_guid
(
riid
),
ppobj
);
return
DSOUND_QueryInterface
(
This
->
pds
,
riid
,
ppobj
);
return
DSOUND_QueryInterface
(
This
->
pds
,
riid
,
ppobj
);
}
}
static
ULONG
WINAPI
IDirectSound8_IDirectSound8_AddRef
(
static
ULONG
WINAPI
IDirectSound8Impl_AddRef
(
IDirectSound8
*
iface
)
LPDIRECTSOUND8
iface
)
{
{
IDirectSound8_IDirectSound8
*
This
=
(
IDirectSound8_IDirectSound8
*
)
iface
;
IDirectSound8_IDirectSound8
*
This
=
(
IDirectSound8_IDirectSound8
*
)
iface
;
ULONG
ref
=
InterlockedIncrement
(
&
(
This
->
ref
));
ULONG
ref
=
InterlockedIncrement
(
&
(
This
->
ref
));
...
@@ -433,8 +429,7 @@ static ULONG WINAPI IDirectSound8_IDirectSound8_AddRef(
...
@@ -433,8 +429,7 @@ static ULONG WINAPI IDirectSound8_IDirectSound8_AddRef(
return
ref
;
return
ref
;
}
}
static
ULONG
WINAPI
IDirectSound8_IDirectSound8_Release
(
static
ULONG
WINAPI
IDirectSound8Impl_Release
(
IDirectSound8
*
iface
)
LPDIRECTSOUND8
iface
)
{
{
IDirectSound8_IDirectSound8
*
This
=
(
IDirectSound8_IDirectSound8
*
)
iface
;
IDirectSound8_IDirectSound8
*
This
=
(
IDirectSound8_IDirectSound8
*
)
iface
;
ULONG
ref
=
InterlockedDecrement
(
&
(
This
->
ref
));
ULONG
ref
=
InterlockedDecrement
(
&
(
This
->
ref
));
...
@@ -448,104 +443,88 @@ static ULONG WINAPI IDirectSound8_IDirectSound8_Release(
...
@@ -448,104 +443,88 @@ static ULONG WINAPI IDirectSound8_IDirectSound8_Release(
return
ref
;
return
ref
;
}
}
static
HRESULT
WINAPI
IDirectSound8_IDirectSound8_CreateSoundBuffer
(
static
HRESULT
WINAPI
IDirectSound8Impl_CreateSoundBuffer
(
IDirectSound8
*
iface
,
LPDIRECTSOUND8
iface
,
const
DSBUFFERDESC
*
dsbd
,
IDirectSoundBuffer
**
ppdsb
,
IUnknown
*
lpunk
)
LPCDSBUFFERDESC
dsbd
,
LPLPDIRECTSOUNDBUFFER
ppdsb
,
LPUNKNOWN
lpunk
)
{
{
IDirectSound8_IDirectSound8
*
This
=
(
IDirectSound8_IDirectSound8
*
)
iface
;
IDirectSound8_IDirectSound8
*
This
=
(
IDirectSound8_IDirectSound8
*
)
iface
;
TRACE
(
"(%p,%p,%p,%p)
\n
"
,
This
,
dsbd
,
ppdsb
,
lpunk
);
TRACE
(
"(%p,%p,%p,%p)
\n
"
,
This
,
dsbd
,
ppdsb
,
lpunk
);
return
DirectSoundDevice_CreateSoundBuffer
(((
IDirectSoundImpl
*
)
This
->
pds
)
->
device
,
dsbd
,
ppdsb
,
lpunk
,
TRUE
);
return
DirectSoundDevice_CreateSoundBuffer
(((
IDirectSoundImpl
*
)
This
->
pds
)
->
device
,
dsbd
,
ppdsb
,
lpunk
,
TRUE
);
}
}
static
HRESULT
WINAPI
IDirectSound8_IDirectSound8_GetCaps
(
static
HRESULT
WINAPI
IDirectSound8Impl_GetCaps
(
IDirectSound8
*
iface
,
DSCAPS
*
lpDSCaps
)
LPDIRECTSOUND8
iface
,
LPDSCAPS
lpDSCaps
)
{
{
IDirectSound8_IDirectSound8
*
This
=
(
IDirectSound8_IDirectSound8
*
)
iface
;
IDirectSound8_IDirectSound8
*
This
=
(
IDirectSound8_IDirectSound8
*
)
iface
;
TRACE
(
"(%p,%p)
\n
"
,
This
,
lpDSCaps
);
TRACE
(
"(%p,%p)
\n
"
,
This
,
lpDSCaps
);
return
DirectSoundDevice_GetCaps
(((
IDirectSoundImpl
*
)
This
->
pds
)
->
device
,
lpDSCaps
);
return
DirectSoundDevice_GetCaps
(((
IDirectSoundImpl
*
)
This
->
pds
)
->
device
,
lpDSCaps
);
}
}
static
HRESULT
WINAPI
IDirectSound8_IDirectSound8_DuplicateSoundBuffer
(
static
HRESULT
WINAPI
IDirectSound8Impl_DuplicateSoundBuffer
(
IDirectSound8
*
iface
,
LPDIRECTSOUND8
iface
,
IDirectSoundBuffer
*
psb
,
IDirectSoundBuffer
**
ppdsb
)
LPDIRECTSOUNDBUFFER
psb
,
LPLPDIRECTSOUNDBUFFER
ppdsb
)
{
{
IDirectSound8_IDirectSound8
*
This
=
(
IDirectSound8_IDirectSound8
*
)
iface
;
IDirectSound8_IDirectSound8
*
This
=
(
IDirectSound8_IDirectSound8
*
)
iface
;
TRACE
(
"(%p,%p,%p)
\n
"
,
This
,
psb
,
ppdsb
);
TRACE
(
"(%p,%p,%p)
\n
"
,
This
,
psb
,
ppdsb
);
return
DirectSoundDevice_DuplicateSoundBuffer
(((
IDirectSoundImpl
*
)
This
->
pds
)
->
device
,
psb
,
ppdsb
);
return
DirectSoundDevice_DuplicateSoundBuffer
(((
IDirectSoundImpl
*
)
This
->
pds
)
->
device
,
psb
,
ppdsb
);
}
}
static
HRESULT
WINAPI
IDirectSound8_IDirectSound8_SetCooperativeLevel
(
static
HRESULT
WINAPI
IDirectSound8Impl_SetCooperativeLevel
(
IDirectSound8
*
iface
,
HWND
hwnd
,
LPDIRECTSOUND8
iface
,
DWORD
level
)
HWND
hwnd
,
DWORD
level
)
{
{
IDirectSound8_IDirectSound8
*
This
=
(
IDirectSound8_IDirectSound8
*
)
iface
;
IDirectSound8_IDirectSound8
*
This
=
(
IDirectSound8_IDirectSound8
*
)
iface
;
TRACE
(
"(%p,%p,%s)
\n
"
,
This
,
hwnd
,
dumpCooperativeLevel
(
level
));
TRACE
(
"(%p,%p,%s)
\n
"
,
This
,
hwnd
,
dumpCooperativeLevel
(
level
));
return
DirectSoundDevice_SetCooperativeLevel
(((
IDirectSoundImpl
*
)
This
->
pds
)
->
device
,
hwnd
,
level
);
return
DirectSoundDevice_SetCooperativeLevel
(((
IDirectSoundImpl
*
)
This
->
pds
)
->
device
,
hwnd
,
level
);
}
}
static
HRESULT
WINAPI
IDirectSound8_IDirectSound8_Compact
(
static
HRESULT
WINAPI
IDirectSound8Impl_Compact
(
IDirectSound8
*
iface
)
LPDIRECTSOUND8
iface
)
{
{
IDirectSound8_IDirectSound8
*
This
=
(
IDirectSound8_IDirectSound8
*
)
iface
;
IDirectSound8_IDirectSound8
*
This
=
(
IDirectSound8_IDirectSound8
*
)
iface
;
TRACE
(
"(%p)
\n
"
,
This
);
TRACE
(
"(%p)
\n
"
,
This
);
return
DirectSoundDevice_Compact
(((
IDirectSoundImpl
*
)
This
->
pds
)
->
device
);
return
DirectSoundDevice_Compact
(((
IDirectSoundImpl
*
)
This
->
pds
)
->
device
);
}
}
static
HRESULT
WINAPI
IDirectSound8_IDirectSound8_GetSpeakerConfig
(
static
HRESULT
WINAPI
IDirectSound8Impl_GetSpeakerConfig
(
IDirectSound8
*
iface
,
LPDIRECTSOUND8
iface
,
DWORD
*
lpdwSpeakerConfig
)
LPDWORD
lpdwSpeakerConfig
)
{
{
IDirectSound8_IDirectSound8
*
This
=
(
IDirectSound8_IDirectSound8
*
)
iface
;
IDirectSound8_IDirectSound8
*
This
=
(
IDirectSound8_IDirectSound8
*
)
iface
;
TRACE
(
"(%p, %p)
\n
"
,
This
,
lpdwSpeakerConfig
);
TRACE
(
"(%p, %p)
\n
"
,
This
,
lpdwSpeakerConfig
);
return
DirectSoundDevice_GetSpeakerConfig
(((
IDirectSoundImpl
*
)
This
->
pds
)
->
device
,
lpdwSpeakerConfig
);
return
DirectSoundDevice_GetSpeakerConfig
(((
IDirectSoundImpl
*
)
This
->
pds
)
->
device
,
lpdwSpeakerConfig
);
}
}
static
HRESULT
WINAPI
IDirectSound8_IDirectSound8_SetSpeakerConfig
(
static
HRESULT
WINAPI
IDirectSound8Impl_SetSpeakerConfig
(
IDirectSound8
*
iface
,
DWORD
config
)
LPDIRECTSOUND8
iface
,
DWORD
config
)
{
{
IDirectSound8_IDirectSound8
*
This
=
(
IDirectSound8_IDirectSound8
*
)
iface
;
IDirectSound8_IDirectSound8
*
This
=
(
IDirectSound8_IDirectSound8
*
)
iface
;
TRACE
(
"(%p,0x%08x)
\n
"
,
This
,
config
);
TRACE
(
"(%p,0x%08x)
\n
"
,
This
,
config
);
return
DirectSoundDevice_SetSpeakerConfig
(((
IDirectSoundImpl
*
)
This
->
pds
)
->
device
,
config
);
return
DirectSoundDevice_SetSpeakerConfig
(((
IDirectSoundImpl
*
)
This
->
pds
)
->
device
,
config
);
}
}
static
HRESULT
WINAPI
IDirectSound8_IDirectSound8_Initialize
(
static
HRESULT
WINAPI
IDirectSound8Impl_Initialize
(
IDirectSound8
*
iface
,
const
GUID
*
lpcGuid
)
LPDIRECTSOUND8
iface
,
LPCGUID
lpcGuid
)
{
{
IDirectSound8_IDirectSound8
*
This
=
(
IDirectSound8_IDirectSound8
*
)
iface
;
IDirectSound8_IDirectSound8
*
This
=
(
IDirectSound8_IDirectSound8
*
)
iface
;
TRACE
(
"(%p, %s)
\n
"
,
This
,
debugstr_guid
(
lpcGuid
));
TRACE
(
"(%p, %s)
\n
"
,
This
,
debugstr_guid
(
lpcGuid
));
return
DirectSoundDevice_Initialize
(
&
((
IDirectSoundImpl
*
)
This
->
pds
)
->
device
,
lpcGuid
);
return
DirectSoundDevice_Initialize
(
&
((
IDirectSoundImpl
*
)
This
->
pds
)
->
device
,
lpcGuid
);
}
}
static
HRESULT
WINAPI
IDirectSound8_IDirectSound8_VerifyCertification
(
static
HRESULT
WINAPI
IDirectSound8Impl_VerifyCertification
(
IDirectSound8
*
iface
,
LPDIRECTSOUND8
iface
,
DWORD
*
pdwCertified
)
LPDWORD
pdwCertified
)
{
{
IDirectSound8_IDirectSound8
*
This
=
(
IDirectSound8_IDirectSound8
*
)
iface
;
IDirectSound8_IDirectSound8
*
This
=
(
IDirectSound8_IDirectSound8
*
)
iface
;
TRACE
(
"(%p, %p)
\n
"
,
This
,
pdwCertified
);
TRACE
(
"(%p, %p)
\n
"
,
This
,
pdwCertified
);
return
DirectSoundDevice_VerifyCertification
(((
IDirectSoundImpl
*
)
This
->
pds
)
->
device
,
pdwCertified
);
return
DirectSoundDevice_VerifyCertification
(((
IDirectSoundImpl
*
)
This
->
pds
)
->
device
,
pdwCertified
);
}
}
static
const
IDirectSound8Vtbl
DirectSound8_DirectSound8_V
tbl
=
static
const
IDirectSound8Vtbl
ds8_v
tbl
=
{
{
IDirectSound8
_IDirectSound8
_QueryInterface
,
IDirectSound8
Impl
_QueryInterface
,
IDirectSound8
_IDirectSound8
_AddRef
,
IDirectSound8
Impl
_AddRef
,
IDirectSound8
_IDirectSound8
_Release
,
IDirectSound8
Impl
_Release
,
IDirectSound8
_IDirectSound8
_CreateSoundBuffer
,
IDirectSound8
Impl
_CreateSoundBuffer
,
IDirectSound8
_IDirectSound8
_GetCaps
,
IDirectSound8
Impl
_GetCaps
,
IDirectSound8
_IDirectSound8
_DuplicateSoundBuffer
,
IDirectSound8
Impl
_DuplicateSoundBuffer
,
IDirectSound8
_IDirectSound8
_SetCooperativeLevel
,
IDirectSound8
Impl
_SetCooperativeLevel
,
IDirectSound8
_IDirectSound8
_Compact
,
IDirectSound8
Impl
_Compact
,
IDirectSound8
_IDirectSound8
_GetSpeakerConfig
,
IDirectSound8
Impl
_GetSpeakerConfig
,
IDirectSound8
_IDirectSound8
_SetSpeakerConfig
,
IDirectSound8
Impl
_SetSpeakerConfig
,
IDirectSound8
_IDirectSound8
_Initialize
,
IDirectSound8
Impl
_Initialize
,
IDirectSound8
_IDirectSound8
_VerifyCertification
IDirectSound8
Impl
_VerifyCertification
};
};
static
HRESULT
IDirectSound8_IDirectSound8_Create
(
static
HRESULT
IDirectSound8_IDirectSound8_Create
(
...
@@ -573,7 +552,7 @@ static HRESULT IDirectSound8_IDirectSound8_Create(
...
@@ -573,7 +552,7 @@ static HRESULT IDirectSound8_IDirectSound8_Create(
return
DSERR_OUTOFMEMORY
;
return
DSERR_OUTOFMEMORY
;
}
}
pdsds
->
lpVtbl
=
&
DirectSound8_DirectSound8_V
tbl
;
pdsds
->
lpVtbl
=
&
ds8_v
tbl
;
pdsds
->
ref
=
0
;
pdsds
->
ref
=
0
;
pdsds
->
pds
=
pds
;
pdsds
->
pds
=
pds
;
...
...
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