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
5cd04574
Commit
5cd04574
authored
Feb 19, 2015
by
Alex Henrie
Committed by
Alexandre Julliard
Feb 19, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dpvoice: Turn GetCompressionTypes into a semi-stub.
parent
d3c87e50
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
45 additions
and
14 deletions
+45
-14
client.c
dlls/dpvoice/client.c
+3
-2
dvoice_private.h
dlls/dpvoice/dvoice_private.h
+1
-0
server.c
dlls/dpvoice/server.c
+41
-2
voice.c
dlls/dpvoice/tests/voice.c
+0
-10
No files found.
dlls/dpvoice/client.c
View file @
5cd04574
...
...
@@ -32,6 +32,7 @@
#include "wine/debug.h"
#include "dvoice.h"
#include "dvoice_private.h"
WINE_DEFAULT_DEBUG_CHANNEL
(
dpvoice
);
...
...
@@ -149,8 +150,8 @@ static HRESULT WINAPI dpvclient_GetCompressionTypes(IDirectPlayVoiceClient *ifac
DWORD
*
pdwDataSize
,
DWORD
*
pdwNumElements
,
DWORD
dwFlags
)
{
IDirectPlayVoiceClientImpl
*
This
=
impl_from_IDirectPlayVoiceClient
(
iface
);
FIXME
(
"%p %p %p %p %d
\n
"
,
This
,
pData
,
pdwDataSize
,
pdwNumElements
,
dwFlags
);
return
E_NOTIMPL
;
FIXME
(
"%p %p %p %p %d
semi-stub
\n
"
,
This
,
pData
,
pdwDataSize
,
pdwNumElements
,
dwFlags
);
return
DPVOICE_GetCompressionTypes
(
pData
,
pdwDataSize
,
pdwNumElements
,
dwFlags
)
;
}
static
HRESULT
WINAPI
dpvclient_SetTransmitTargets
(
IDirectPlayVoiceClient
*
iface
,
PDVID
pdvIDTargets
,
...
...
dlls/dpvoice/dvoice_private.h
View file @
5cd04574
...
...
@@ -23,5 +23,6 @@
extern
HRESULT
DPVOICE_CreateDirectPlayVoiceClient
(
IClassFactory
*
iface
,
IUnknown
*
pUnkOuter
,
REFIID
riid
,
void
**
ppobj
)
DECLSPEC_HIDDEN
;
extern
HRESULT
DPVOICE_CreateDirectPlayVoiceServer
(
IClassFactory
*
iface
,
IUnknown
*
pUnkOuter
,
REFIID
riid
,
void
**
ppobj
)
DECLSPEC_HIDDEN
;
extern
HRESULT
DPVOICE_CreateDirectPlayVoiceTest
(
IClassFactory
*
iface
,
IUnknown
*
pUnkOuter
,
REFIID
riid
,
void
**
ppobj
)
DECLSPEC_HIDDEN
;
extern
HRESULT
DPVOICE_GetCompressionTypes
(
DVCOMPRESSIONINFO
*
pData
,
DWORD
*
pdwDataSize
,
DWORD
*
pdwNumElements
,
DWORD
dwFlags
)
DECLSPEC_HIDDEN
;
#endif
dlls/dpvoice/server.c
View file @
5cd04574
...
...
@@ -41,6 +41,45 @@ typedef struct IDirectPlayVoiceServerImpl
LONG
ref
;
}
IDirectPlayVoiceServerImpl
;
HRESULT
DPVOICE_GetCompressionTypes
(
DVCOMPRESSIONINFO
*
pData
,
DWORD
*
pdwDataSize
,
DWORD
*
pdwNumElements
,
DWORD
dwFlags
)
{
static
const
DVCOMPRESSIONINFO
pcm_type
=
{
80
,
{
0x8de12fd4
,
0x7cb3
,
0x48ce
,{
0xa7
,
0xe8
,
0x9c
,
0x47
,
0xa2
,
0x2e
,
0x8a
,
0xc5
}},
NULL
,
NULL
,
0
,
64000
};
static
const
WCHAR
pcm_name
[]
=
{
'M'
,
'S'
,
'-'
,
'P'
,
'C'
,
'M'
,
' '
,
'6'
,
'4'
,
' '
,
'k'
,
'b'
,
'i'
,
't'
,
'/'
,
's'
,
0
};
HRESULT
ret
;
LPWSTR
string_loc
;
if
(
!
pdwDataSize
||
!
pdwNumElements
)
return
DVERR_INVALIDPOINTER
;
if
(
dwFlags
)
return
DVERR_INVALIDFLAGS
;
*
pdwNumElements
=
1
;
if
(
*
pdwDataSize
<
sizeof
(
pcm_type
)
+
sizeof
(
pcm_name
))
{
ret
=
DVERR_BUFFERTOOSMALL
;
}
else
if
(
!
pData
)
{
ret
=
DVERR_INVALIDPOINTER
;
}
else
{
string_loc
=
(
LPWSTR
)((
char
*
)
pData
+
sizeof
(
pcm_type
));
memcpy
(
pData
,
&
pcm_type
,
sizeof
(
pcm_type
));
memcpy
(
string_loc
,
pcm_name
,
sizeof
(
pcm_name
));
pData
->
lpszName
=
string_loc
;
ret
=
DV_OK
;
}
*
pdwDataSize
=
sizeof
(
pcm_type
)
+
sizeof
(
pcm_name
);
return
ret
;
}
static
inline
IDirectPlayVoiceServerImpl
*
impl_from_IDirectPlayVoiceServer
(
IDirectPlayVoiceServer
*
iface
)
{
return
CONTAINING_RECORD
(
iface
,
IDirectPlayVoiceServerImpl
,
IDirectPlayVoiceServer_iface
);
...
...
@@ -130,8 +169,8 @@ static HRESULT WINAPI dpvserver_GetCompressionTypes(IDirectPlayVoiceServer *ifac
DWORD
*
pdwNumElements
,
DWORD
dwFlags
)
{
IDirectPlayVoiceServerImpl
*
This
=
impl_from_IDirectPlayVoiceServer
(
iface
);
FIXME
(
"%p %p %p %p %d
\n
"
,
This
,
pData
,
pdwDataSize
,
pdwNumElements
,
dwFlags
);
return
E_NOTIMPL
;
FIXME
(
"%p %p %p %p %d
semi-stub
\n
"
,
This
,
pData
,
pdwDataSize
,
pdwNumElements
,
dwFlags
);
return
DPVOICE_GetCompressionTypes
(
pData
,
pdwDataSize
,
pdwNumElements
,
dwFlags
)
;
}
static
HRESULT
WINAPI
dpvserver_SetTransmitTargets
(
IDirectPlayVoiceServer
*
iface
,
DVID
dvSource
,
PDVID
pdvIDTargets
,
...
...
dlls/dpvoice/tests/voice.c
View file @
5cd04574
...
...
@@ -420,16 +420,6 @@ static void test_GetCompressionTypes(IDirectPlayVoiceClient *client_iface, IDire
/* either client_iface or server_iface must be given, but not both */
assert
(
!
client_iface
^
!
server_iface
);
if
(
client_iface
)
ret
=
IDirectPlayVoiceClient_GetCompressionTypes
(
client_iface
,
NULL
,
NULL
,
NULL
,
0
);
else
ret
=
IDirectPlayVoiceServer_GetCompressionTypes
(
server_iface
,
NULL
,
NULL
,
NULL
,
0
);
if
(
ret
==
E_NOTIMPL
)
{
skip
(
"%s: GetCompressionTypes not implemented
\n
"
,
name
);
return
;
}
if
(
client_iface
)
ret
=
IDirectPlayVoiceClient_GetCompressionTypes
(
client_iface
,
NULL
,
&
data_size
,
&
num_elements
,
0
);
else
...
...
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