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
7d92b5d8
Commit
7d92b5d8
authored
Jan 28, 2005
by
Robert Reif
Committed by
Alexandre Julliard
Jan 28, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix structure member name to match windows headers and fix up all
uses. Nameless struct fix for dsound/propset.c to compile on both windows and wine.
parent
9dba3479
Show whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
64 additions
and
59 deletions
+64
-59
capture.c
dlls/dsound/capture.c
+10
-10
dsound_main.c
dlls/dsound/dsound_main.c
+8
-8
propset.c
dlls/dsound/propset.c
+36
-31
audio.c
dlls/winmm/winealsa/audio.c
+2
-2
audio.c
dlls/winmm/winearts/audio.c
+1
-1
audio.c
dlls/winmm/wineaudioio/audio.c
+3
-3
audio.c
dlls/winmm/winejack/audio.c
+1
-1
audio.c
dlls/winmm/winenas/audio.c
+1
-1
audio.c
dlls/winmm/wineoss/audio.c
+1
-1
dsdriver.h
include/dsdriver.h
+1
-1
No files found.
dlls/dsound/capture.c
View file @
7d92b5d8
...
...
@@ -190,8 +190,8 @@ DirectSoundCaptureEnumerateA(
err
=
mmErr
(
waveInMessage
((
HWAVEIN
)
wid
,
DRV_QUERYDSOUNDDESC
,(
DWORD
)
&
desc
,
0
));
if
(
err
==
DS_OK
)
{
TRACE
(
"calling lpDSEnumCallback(NULL,
\"
%s
\"
,
\"
%s
\"
,%p)
\n
"
,
"Primary Sound Capture Driver"
,
desc
.
szDrv
N
ame
,
lpContext
);
if
(
lpDSEnumCallback
(
NULL
,
"Primary Sound Capture Driver"
,
desc
.
szDrv
N
ame
,
lpContext
)
==
FALSE
)
"Primary Sound Capture Driver"
,
desc
.
szDrv
n
ame
,
lpContext
);
if
(
lpDSEnumCallback
(
NULL
,
"Primary Sound Capture Driver"
,
desc
.
szDrv
n
ame
,
lpContext
)
==
FALSE
)
return
DS_OK
;
}
}
...
...
@@ -203,8 +203,8 @@ DirectSoundCaptureEnumerateA(
err
=
mmErr
(
waveInMessage
((
HWAVEIN
)
wid
,
DRV_QUERYDSOUNDDESC
,(
DWORD
)
&
desc
,
0
));
if
(
err
==
DS_OK
)
{
TRACE
(
"calling lpDSEnumCallback(%s,
\"
%s
\"
,
\"
%s
\"
,%p)
\n
"
,
debugstr_guid
(
&
capture_guids
[
wid
]),
desc
.
szDesc
,
desc
.
szDrv
N
ame
,
lpContext
);
if
(
lpDSEnumCallback
(
&
capture_guids
[
wid
],
desc
.
szDesc
,
desc
.
szDrv
N
ame
,
lpContext
)
==
FALSE
)
debugstr_guid
(
&
capture_guids
[
wid
]),
desc
.
szDesc
,
desc
.
szDrv
n
ame
,
lpContext
);
if
(
lpDSEnumCallback
(
&
capture_guids
[
wid
],
desc
.
szDesc
,
desc
.
szDrv
n
ame
,
lpContext
)
==
FALSE
)
return
DS_OK
;
}
}
...
...
@@ -252,10 +252,10 @@ DirectSoundCaptureEnumerateW(
err
=
mmErr
(
waveInMessage
((
HWAVEIN
)
wid
,
DRV_QUERYDSOUNDDESC
,(
DWORD
)
&
desc
,
0
));
if
(
err
==
DS_OK
)
{
TRACE
(
"calling lpDSEnumCallback(NULL,
\"
%s
\"
,
\"
%s
\"
,%p)
\n
"
,
"Primary Sound Capture Driver"
,
desc
.
szDrv
N
ame
,
lpContext
);
"Primary Sound Capture Driver"
,
desc
.
szDrv
n
ame
,
lpContext
);
MultiByteToWideChar
(
CP_ACP
,
0
,
"Primary Sound Capture Driver"
,
-
1
,
wDesc
,
sizeof
(
wDesc
)
/
sizeof
(
WCHAR
)
);
MultiByteToWideChar
(
CP_ACP
,
0
,
desc
.
szDrv
N
ame
,
-
1
,
MultiByteToWideChar
(
CP_ACP
,
0
,
desc
.
szDrv
n
ame
,
-
1
,
wName
,
sizeof
(
wName
)
/
sizeof
(
WCHAR
)
);
if
(
lpDSEnumCallback
(
NULL
,
wDesc
,
wName
,
lpContext
)
==
FALSE
)
return
DS_OK
;
...
...
@@ -269,10 +269,10 @@ DirectSoundCaptureEnumerateW(
err
=
mmErr
(
waveInMessage
((
HWAVEIN
)
wid
,
DRV_QUERYDSOUNDDESC
,(
DWORD
)
&
desc
,
0
));
if
(
err
==
DS_OK
)
{
TRACE
(
"calling lpDSEnumCallback(%s,
\"
%s
\"
,
\"
%s
\"
,%p)
\n
"
,
debugstr_guid
(
&
capture_guids
[
wid
]),
desc
.
szDesc
,
desc
.
szDrv
N
ame
,
lpContext
);
debugstr_guid
(
&
capture_guids
[
wid
]),
desc
.
szDesc
,
desc
.
szDrv
n
ame
,
lpContext
);
MultiByteToWideChar
(
CP_ACP
,
0
,
desc
.
szDesc
,
-
1
,
wDesc
,
sizeof
(
wDesc
)
/
sizeof
(
WCHAR
)
);
MultiByteToWideChar
(
CP_ACP
,
0
,
desc
.
szDrv
N
ame
,
-
1
,
MultiByteToWideChar
(
CP_ACP
,
0
,
desc
.
szDrv
n
ame
,
-
1
,
wName
,
sizeof
(
wName
)
/
sizeof
(
WCHAR
)
);
if
(
lpDSEnumCallback
((
LPGUID
)
&
capture_guids
[
wid
],
wDesc
,
wName
,
lpContext
)
==
FALSE
)
return
DS_OK
;
...
...
@@ -570,8 +570,8 @@ IDirectSoundCaptureImpl_Initialize(
if
(
err
==
DS_OK
)
{
This
->
drvcaps
.
dwFlags
=
0
;
strncpy
(
This
->
drvdesc
.
szDrv
N
ame
,
wic
.
szPname
,
sizeof
(
This
->
drvdesc
.
szDrv
N
ame
));
strncpy
(
This
->
drvdesc
.
szDrv
n
ame
,
wic
.
szPname
,
sizeof
(
This
->
drvdesc
.
szDrv
n
ame
));
This
->
drvcaps
.
dwFlags
|=
DSCCAPS_EMULDRIVER
;
This
->
drvcaps
.
dwFormats
=
wic
.
dwFormats
;
...
...
dlls/dsound/dsound_main.c
View file @
7d92b5d8
...
...
@@ -325,8 +325,8 @@ HRESULT WINAPI DirectSoundEnumerateA(
err
=
mmErr
(
waveOutMessage
((
HWAVEOUT
)
wod
,
DRV_QUERYDSOUNDDESC
,(
DWORD
)
&
desc
,
0
));
if
(
err
==
DS_OK
)
{
TRACE
(
"calling lpDSEnumCallback(NULL,
\"
%s
\"
,
\"
%s
\"
,%p)
\n
"
,
"Primary Sound Driver"
,
desc
.
szDrv
N
ame
,
lpContext
);
if
(
lpDSEnumCallback
(
NULL
,
"Primary Sound Driver"
,
desc
.
szDrv
N
ame
,
lpContext
)
==
FALSE
)
"Primary Sound Driver"
,
desc
.
szDrv
n
ame
,
lpContext
);
if
(
lpDSEnumCallback
(
NULL
,
"Primary Sound Driver"
,
desc
.
szDrv
n
ame
,
lpContext
)
==
FALSE
)
return
DS_OK
;
}
}
...
...
@@ -338,8 +338,8 @@ HRESULT WINAPI DirectSoundEnumerateA(
err
=
mmErr
(
waveOutMessage
((
HWAVEOUT
)
wod
,
DRV_QUERYDSOUNDDESC
,(
DWORD
)
&
desc
,
0
));
if
(
err
==
DS_OK
)
{
TRACE
(
"calling lpDSEnumCallback(%s,
\"
%s
\"
,
\"
%s
\"
,%p)
\n
"
,
debugstr_guid
(
&
renderer_guids
[
wod
]),
desc
.
szDesc
,
desc
.
szDrv
N
ame
,
lpContext
);
if
(
lpDSEnumCallback
(
&
renderer_guids
[
wod
],
desc
.
szDesc
,
desc
.
szDrv
N
ame
,
lpContext
)
==
FALSE
)
debugstr_guid
(
&
renderer_guids
[
wod
]),
desc
.
szDesc
,
desc
.
szDrv
n
ame
,
lpContext
);
if
(
lpDSEnumCallback
(
&
renderer_guids
[
wod
],
desc
.
szDesc
,
desc
.
szDrv
n
ame
,
lpContext
)
==
FALSE
)
return
DS_OK
;
}
}
...
...
@@ -386,10 +386,10 @@ HRESULT WINAPI DirectSoundEnumerateW(
err
=
mmErr
(
waveOutMessage
((
HWAVEOUT
)
wod
,
DRV_QUERYDSOUNDDESC
,(
DWORD
)
&
desc
,
0
));
if
(
err
==
DS_OK
)
{
TRACE
(
"calling lpDSEnumCallback(NULL,
\"
%s
\"
,
\"
%s
\"
,%p)
\n
"
,
"Primary Sound Driver"
,
desc
.
szDrv
N
ame
,
lpContext
);
"Primary Sound Driver"
,
desc
.
szDrv
n
ame
,
lpContext
);
MultiByteToWideChar
(
CP_ACP
,
0
,
"Primary Sound Driver"
,
-
1
,
wDesc
,
sizeof
(
wDesc
)
/
sizeof
(
WCHAR
)
);
MultiByteToWideChar
(
CP_ACP
,
0
,
desc
.
szDrv
N
ame
,
-
1
,
MultiByteToWideChar
(
CP_ACP
,
0
,
desc
.
szDrv
n
ame
,
-
1
,
wName
,
sizeof
(
wName
)
/
sizeof
(
WCHAR
)
);
if
(
lpDSEnumCallback
(
NULL
,
wDesc
,
wName
,
lpContext
)
==
FALSE
)
return
DS_OK
;
...
...
@@ -403,10 +403,10 @@ HRESULT WINAPI DirectSoundEnumerateW(
err
=
mmErr
(
waveOutMessage
((
HWAVEOUT
)
wod
,
DRV_QUERYDSOUNDDESC
,(
DWORD
)
&
desc
,
0
));
if
(
err
==
DS_OK
)
{
TRACE
(
"calling lpDSEnumCallback(%s,
\"
%s
\"
,
\"
%s
\"
,%p)
\n
"
,
debugstr_guid
(
&
renderer_guids
[
wod
]),
desc
.
szDesc
,
desc
.
szDrv
N
ame
,
lpContext
);
debugstr_guid
(
&
renderer_guids
[
wod
]),
desc
.
szDesc
,
desc
.
szDrv
n
ame
,
lpContext
);
MultiByteToWideChar
(
CP_ACP
,
0
,
desc
.
szDesc
,
-
1
,
wDesc
,
sizeof
(
wDesc
)
/
sizeof
(
WCHAR
)
);
MultiByteToWideChar
(
CP_ACP
,
0
,
desc
.
szDrv
N
ame
,
-
1
,
MultiByteToWideChar
(
CP_ACP
,
0
,
desc
.
szDrv
n
ame
,
-
1
,
wName
,
sizeof
(
wName
)
/
sizeof
(
WCHAR
)
);
if
(
lpDSEnumCallback
(
&
renderer_guids
[
wod
],
wDesc
,
wName
,
lpContext
)
==
FALSE
)
return
DS_OK
;
...
...
dlls/dsound/propset.c
View file @
7d92b5d8
...
...
@@ -21,14 +21,13 @@
#include <stdarg.h>
#define NONAMELESSUNION
#define NONAMELESSSTRUCT
#include "windef.h"
#include "winbase.h"
#include "mmsystem.h"
#include "winreg.h"
#include "winternl.h"
#include "winnls.h"
#include "vfwmsgs.h"
#include "mmddk.h"
#include "wine/debug.h"
#include "dsound.h"
...
...
@@ -37,6 +36,12 @@
#include "initguid.h"
#include "dsconf.h"
#ifdef NONAMELESSSTRUCT
# define S(x) (x).s
#else
# define S(x) (x)
#endif
WINE_DEFAULT_DEBUG_CHANNEL
(
dsound
);
...
...
@@ -101,10 +106,10 @@ static HRESULT WINAPI IKsBufferPropertySetImpl_Get(
DSPROPERTY
prop
;
HRESULT
hres
;
prop
.
s
.
Set
=
*
guidPropSet
;
prop
.
s
.
Id
=
dwPropID
;
prop
.
s
.
Flags
=
0
;
/* unused */
prop
.
s
.
InstanceId
=
(
ULONG
)
This
->
dsb
->
dsound
;
S
(
prop
)
.
Set
=
*
guidPropSet
;
S
(
prop
)
.
Id
=
dwPropID
;
S
(
prop
)
.
Flags
=
0
;
/* unused */
S
(
prop
)
.
InstanceId
=
(
ULONG
)
This
->
dsb
->
dsound
;
hres
=
IDsDriverPropertySet_Get
(
ps
,
&
prop
,
pInstanceData
,
cbInstanceData
,
pPropData
,
cbPropData
,
pcbReturned
);
...
...
@@ -137,10 +142,10 @@ static HRESULT WINAPI IKsBufferPropertySetImpl_Set(
DSPROPERTY
prop
;
HRESULT
hres
;
prop
.
s
.
Set
=
*
guidPropSet
;
prop
.
s
.
Id
=
dwPropID
;
prop
.
s
.
Flags
=
0
;
/* unused */
prop
.
s
.
InstanceId
=
(
ULONG
)
This
->
dsb
->
dsound
;
S
(
prop
)
.
Set
=
*
guidPropSet
;
S
(
prop
)
.
Id
=
dwPropID
;
S
(
prop
)
.
Flags
=
0
;
/* unused */
S
(
prop
)
.
InstanceId
=
(
ULONG
)
This
->
dsb
->
dsound
;
hres
=
IDsDriverPropertySet_Set
(
ps
,
&
prop
,
pInstanceData
,
cbInstanceData
,
pPropData
,
cbPropData
);
IDsDriverPropertySet_Release
(
ps
);
...
...
@@ -380,9 +385,9 @@ static HRESULT WINAPI DSPROPERTY_Description1(
if
(
err
==
DS_OK
)
{
PIDSDRIVER
drv
=
NULL
;
strncpy
(
ppd
->
DescriptionA
,
desc
.
szDesc
,
sizeof
(
ppd
->
DescriptionA
)
-
1
);
strncpy
(
ppd
->
ModuleA
,
desc
.
szDrv
N
ame
,
sizeof
(
ppd
->
ModuleA
)
-
1
);
strncpy
(
ppd
->
ModuleA
,
desc
.
szDrv
n
ame
,
sizeof
(
ppd
->
ModuleA
)
-
1
);
MultiByteToWideChar
(
CP_ACP
,
0
,
desc
.
szDesc
,
-
1
,
ppd
->
DescriptionW
,
sizeof
(
ppd
->
DescriptionW
)
/
sizeof
(
WCHAR
)
);
MultiByteToWideChar
(
CP_ACP
,
0
,
desc
.
szDrv
N
ame
,
-
1
,
ppd
->
ModuleW
,
sizeof
(
ppd
->
ModuleW
)
/
sizeof
(
WCHAR
)
);
MultiByteToWideChar
(
CP_ACP
,
0
,
desc
.
szDrv
n
ame
,
-
1
,
ppd
->
ModuleW
,
sizeof
(
ppd
->
ModuleW
)
/
sizeof
(
WCHAR
)
);
err
=
mmErr
(
waveOutMessage
((
HWAVEOUT
)
wod
,
DRV_QUERYDSOUNDIFACE
,
(
DWORD
)
&
drv
,
0
));
if
(
err
==
DS_OK
&&
drv
)
ppd
->
Type
=
DIRECTSOUNDDEVICE_TYPE_VXD
;
...
...
@@ -409,9 +414,9 @@ static HRESULT WINAPI DSPROPERTY_Description1(
if
(
err
==
DS_OK
)
{
PIDSCDRIVER
drv
;
strncpy
(
ppd
->
DescriptionA
,
desc
.
szDesc
,
sizeof
(
ppd
->
DescriptionA
)
-
1
);
strncpy
(
ppd
->
ModuleA
,
desc
.
szDrv
N
ame
,
sizeof
(
ppd
->
ModuleA
)
-
1
);
strncpy
(
ppd
->
ModuleA
,
desc
.
szDrv
n
ame
,
sizeof
(
ppd
->
ModuleA
)
-
1
);
MultiByteToWideChar
(
CP_ACP
,
0
,
desc
.
szDesc
,
-
1
,
ppd
->
DescriptionW
,
sizeof
(
ppd
->
DescriptionW
)
/
sizeof
(
WCHAR
)
);
MultiByteToWideChar
(
CP_ACP
,
0
,
desc
.
szDrv
N
ame
,
-
1
,
ppd
->
ModuleW
,
sizeof
(
ppd
->
ModuleW
)
/
sizeof
(
WCHAR
)
);
MultiByteToWideChar
(
CP_ACP
,
0
,
desc
.
szDrv
n
ame
,
-
1
,
ppd
->
ModuleW
,
sizeof
(
ppd
->
ModuleW
)
/
sizeof
(
WCHAR
)
);
err
=
mmErr
(
waveInMessage
((
HWAVEIN
)
wid
,
DRV_QUERYDSOUNDIFACE
,(
DWORD
)
&
drv
,
0
));
if
(
err
==
DS_OK
&&
drv
)
ppd
->
Type
=
DIRECTSOUNDDEVICE_TYPE_VXD
;
...
...
@@ -439,9 +444,9 @@ static HRESULT WINAPI DSPROPERTY_Description1(
if
(
err
==
DS_OK
)
{
PIDSDRIVER
drv
=
NULL
;
strncpy
(
ppd
->
DescriptionA
,
desc
.
szDesc
,
sizeof
(
ppd
->
DescriptionA
)
-
1
);
strncpy
(
ppd
->
ModuleA
,
desc
.
szDrv
N
ame
,
sizeof
(
ppd
->
ModuleA
)
-
1
);
strncpy
(
ppd
->
ModuleA
,
desc
.
szDrv
n
ame
,
sizeof
(
ppd
->
ModuleA
)
-
1
);
MultiByteToWideChar
(
CP_ACP
,
0
,
desc
.
szDesc
,
-
1
,
ppd
->
DescriptionW
,
sizeof
(
ppd
->
DescriptionW
)
/
sizeof
(
WCHAR
)
);
MultiByteToWideChar
(
CP_ACP
,
0
,
desc
.
szDrv
N
ame
,
-
1
,
ppd
->
ModuleW
,
sizeof
(
ppd
->
ModuleW
)
/
sizeof
(
WCHAR
)
);
MultiByteToWideChar
(
CP_ACP
,
0
,
desc
.
szDrv
n
ame
,
-
1
,
ppd
->
ModuleW
,
sizeof
(
ppd
->
ModuleW
)
/
sizeof
(
WCHAR
)
);
err
=
mmErr
(
waveOutMessage
((
HWAVEOUT
)
wod
,
DRV_QUERYDSOUNDIFACE
,
(
DWORD
)
&
drv
,
0
));
if
(
err
==
DS_OK
&&
drv
)
ppd
->
Type
=
DIRECTSOUNDDEVICE_TYPE_VXD
;
...
...
@@ -470,9 +475,9 @@ static HRESULT WINAPI DSPROPERTY_Description1(
if
(
err
==
DS_OK
)
{
PIDSDRIVER
drv
=
NULL
;
strncpy
(
ppd
->
DescriptionA
,
desc
.
szDesc
,
sizeof
(
ppd
->
DescriptionA
)
-
1
);
strncpy
(
ppd
->
ModuleA
,
desc
.
szDrv
N
ame
,
sizeof
(
ppd
->
ModuleA
)
-
1
);
strncpy
(
ppd
->
ModuleA
,
desc
.
szDrv
n
ame
,
sizeof
(
ppd
->
ModuleA
)
-
1
);
MultiByteToWideChar
(
CP_ACP
,
0
,
desc
.
szDesc
,
-
1
,
ppd
->
DescriptionW
,
sizeof
(
ppd
->
DescriptionW
)
/
sizeof
(
WCHAR
)
);
MultiByteToWideChar
(
CP_ACP
,
0
,
desc
.
szDrv
N
ame
,
-
1
,
ppd
->
ModuleW
,
sizeof
(
ppd
->
ModuleW
)
/
sizeof
(
WCHAR
)
);
MultiByteToWideChar
(
CP_ACP
,
0
,
desc
.
szDrv
n
ame
,
-
1
,
ppd
->
ModuleW
,
sizeof
(
ppd
->
ModuleW
)
/
sizeof
(
WCHAR
)
);
err
=
mmErr
(
waveInMessage
((
HWAVEIN
)
wod
,
DRV_QUERYDSOUNDIFACE
,
(
DWORD
)
&
drv
,
0
));
if
(
err
==
DS_OK
&&
drv
)
ppd
->
Type
=
DIRECTSOUNDDEVICE_TYPE_VXD
;
...
...
@@ -546,11 +551,11 @@ static HRESULT WINAPI DSPROPERTY_DescriptionA(
PIDSDRIVER
drv
=
NULL
;
/* FIXME: this is a memory leak */
CHAR
*
szDescription
=
HeapAlloc
(
GetProcessHeap
(),
0
,
strlen
(
desc
.
szDesc
)
+
1
);
CHAR
*
szModule
=
HeapAlloc
(
GetProcessHeap
(),
0
,
strlen
(
desc
.
szDrv
N
ame
)
+
1
);
CHAR
*
szModule
=
HeapAlloc
(
GetProcessHeap
(),
0
,
strlen
(
desc
.
szDrv
n
ame
)
+
1
);
CHAR
*
szInterface
=
HeapAlloc
(
GetProcessHeap
(),
0
,
strlen
(
"Interface"
)
+
1
);
strcpy
(
szDescription
,
desc
.
szDesc
);
strcpy
(
szModule
,
desc
.
szDrv
N
ame
);
strcpy
(
szModule
,
desc
.
szDrv
n
ame
);
strcpy
(
szInterface
,
"Interface"
);
ppd
->
Description
=
szDescription
;
...
...
@@ -582,11 +587,11 @@ static HRESULT WINAPI DSPROPERTY_DescriptionA(
PIDSCDRIVER
drv
;
/* FIXME: this is a memory leak */
CHAR
*
szDescription
=
HeapAlloc
(
GetProcessHeap
(),
0
,
strlen
(
desc
.
szDesc
)
+
1
);
CHAR
*
szModule
=
HeapAlloc
(
GetProcessHeap
(),
0
,
strlen
(
desc
.
szDrv
N
ame
)
+
1
);
CHAR
*
szModule
=
HeapAlloc
(
GetProcessHeap
(),
0
,
strlen
(
desc
.
szDrv
n
ame
)
+
1
);
CHAR
*
szInterface
=
HeapAlloc
(
GetProcessHeap
(),
0
,
strlen
(
"Interface"
)
+
1
);
strcpy
(
szDescription
,
desc
.
szDesc
);
strcpy
(
szModule
,
desc
.
szDrv
N
ame
);
strcpy
(
szModule
,
desc
.
szDrv
n
ame
);
strcpy
(
szInterface
,
"Interface"
);
ppd
->
Description
=
szDescription
;
...
...
@@ -619,11 +624,11 @@ static HRESULT WINAPI DSPROPERTY_DescriptionA(
PIDSDRIVER
drv
=
NULL
;
/* FIXME: this is a memory leak */
CHAR
*
szDescription
=
HeapAlloc
(
GetProcessHeap
(),
0
,
strlen
(
desc
.
szDesc
)
+
1
);
CHAR
*
szModule
=
HeapAlloc
(
GetProcessHeap
(),
0
,
strlen
(
desc
.
szDrv
N
ame
)
+
1
);
CHAR
*
szModule
=
HeapAlloc
(
GetProcessHeap
(),
0
,
strlen
(
desc
.
szDrv
n
ame
)
+
1
);
CHAR
*
szInterface
=
HeapAlloc
(
GetProcessHeap
(),
0
,
strlen
(
"Interface"
)
+
1
);
strcpy
(
szDescription
,
desc
.
szDesc
);
strcpy
(
szModule
,
desc
.
szDrv
N
ame
);
strcpy
(
szModule
,
desc
.
szDrv
n
ame
);
strcpy
(
szInterface
,
"Interface"
);
ppd
->
Description
=
szDescription
;
...
...
@@ -705,7 +710,7 @@ static HRESULT WINAPI DSPROPERTY_DescriptionW(
WCHAR
*
wInterface
=
HeapAlloc
(
GetProcessHeap
(),
0
,
0x200
);
MultiByteToWideChar
(
CP_ACP
,
0
,
desc
.
szDesc
,
-
1
,
wDescription
,
0x100
);
MultiByteToWideChar
(
CP_ACP
,
0
,
desc
.
szDrv
N
ame
,
-
1
,
wModule
,
0x100
);
MultiByteToWideChar
(
CP_ACP
,
0
,
desc
.
szDrv
n
ame
,
-
1
,
wModule
,
0x100
);
MultiByteToWideChar
(
CP_ACP
,
0
,
"Interface"
,
-
1
,
wInterface
,
0x100
);
ppd
->
Description
=
wDescription
;
...
...
@@ -741,7 +746,7 @@ static HRESULT WINAPI DSPROPERTY_DescriptionW(
WCHAR
*
wInterface
=
HeapAlloc
(
GetProcessHeap
(),
0
,
0x200
);
MultiByteToWideChar
(
CP_ACP
,
0
,
desc
.
szDesc
,
-
1
,
wDescription
,
0x100
);
MultiByteToWideChar
(
CP_ACP
,
0
,
desc
.
szDrv
N
ame
,
-
1
,
wModule
,
0x100
);
MultiByteToWideChar
(
CP_ACP
,
0
,
desc
.
szDrv
n
ame
,
-
1
,
wModule
,
0x100
);
MultiByteToWideChar
(
CP_ACP
,
0
,
"Interface"
,
-
1
,
wInterface
,
0x100
);
ppd
->
Description
=
wDescription
;
...
...
@@ -778,7 +783,7 @@ static HRESULT WINAPI DSPROPERTY_DescriptionW(
WCHAR
*
wInterface
=
HeapAlloc
(
GetProcessHeap
(),
0
,
0x200
);
MultiByteToWideChar
(
CP_ACP
,
0
,
desc
.
szDesc
,
-
1
,
wDescription
,
0x100
);
MultiByteToWideChar
(
CP_ACP
,
0
,
desc
.
szDrv
N
ame
,
-
1
,
wModule
,
0x100
);
MultiByteToWideChar
(
CP_ACP
,
0
,
desc
.
szDrv
n
ame
,
-
1
,
wModule
,
0x100
);
MultiByteToWideChar
(
CP_ACP
,
0
,
"Interface"
,
-
1
,
wInterface
,
0x100
);
ppd
->
Description
=
wDescription
;
...
...
@@ -849,7 +854,7 @@ static HRESULT WINAPI DSPROPERTY_EnumerateA(
data
.
WaveDeviceId
=
wod
;
data
.
DeviceId
=
renderer_guids
[
wod
];
data
.
Description
=
desc
.
szDesc
;
data
.
Module
=
desc
.
szDrv
N
ame
;
data
.
Module
=
desc
.
szDrv
n
ame
;
err
=
mmErr
(
waveOutMessage
((
HWAVEOUT
)
wod
,
DRV_QUERYDEVICEINTERFACESIZE
,(
DWORD_PTR
)
&
size
,
0
));
if
(
err
==
DS_OK
)
{
WCHAR
*
nameW
=
HeapAlloc
(
GetProcessHeap
(),
0
,
size
);
...
...
@@ -879,7 +884,7 @@ static HRESULT WINAPI DSPROPERTY_EnumerateA(
data
.
WaveDeviceId
=
wid
;
data
.
DeviceId
=
capture_guids
[
wid
];
data
.
Description
=
desc
.
szDesc
;
data
.
Module
=
desc
.
szDrv
N
ame
;
data
.
Module
=
desc
.
szDrv
n
ame
;
err
=
mmErr
(
waveInMessage
((
HWAVEIN
)
wid
,
DRV_QUERYDEVICEINTERFACESIZE
,(
DWORD_PTR
)
&
size
,
0
));
if
(
err
==
DS_OK
)
{
WCHAR
*
nameW
=
HeapAlloc
(
GetProcessHeap
(),
0
,
size
);
...
...
@@ -950,7 +955,7 @@ static HRESULT WINAPI DSPROPERTY_EnumerateW(
data
.
DeviceId
=
renderer_guids
[
wod
];
MultiByteToWideChar
(
CP_ACP
,
0
,
desc
.
szDesc
,
-
1
,
wDescription
,
0x100
);
MultiByteToWideChar
(
CP_ACP
,
0
,
desc
.
szDrv
N
ame
,
-
1
,
wModule
,
0x100
);
MultiByteToWideChar
(
CP_ACP
,
0
,
desc
.
szDrv
n
ame
,
-
1
,
wModule
,
0x100
);
data
.
Description
=
wDescription
;
data
.
Module
=
wModule
;
...
...
@@ -984,7 +989,7 @@ static HRESULT WINAPI DSPROPERTY_EnumerateW(
data
.
DeviceId
=
capture_guids
[
wid
];
MultiByteToWideChar
(
CP_ACP
,
0
,
desc
.
szDesc
,
-
1
,
wDescription
,
0x100
);
MultiByteToWideChar
(
CP_ACP
,
0
,
desc
.
szDrv
N
ame
,
-
1
,
wModule
,
0x100
);
MultiByteToWideChar
(
CP_ACP
,
0
,
desc
.
szDrv
n
ame
,
-
1
,
wModule
,
0x100
);
data
.
Description
=
wDescription
;
data
.
Module
=
wModule
;
...
...
dlls/winmm/winealsa/audio.c
View file @
7d92b5d8
...
...
@@ -707,7 +707,7 @@ LONG ALSA_WaveInit(void)
wwo
->
caps
.
dwFormats
=
0x00000000
;
wwo
->
caps
.
dwSupport
=
WAVECAPS_VOLUME
;
strcpy
(
wwo
->
ds_desc
.
szDesc
,
"WineALSA DirectSound Driver"
);
strcpy
(
wwo
->
ds_desc
.
szDrv
N
ame
,
"winealsa.drv"
);
strcpy
(
wwo
->
ds_desc
.
szDrv
n
ame
,
"winealsa.drv"
);
if
(
!
wine_dlopen
(
"libasound.so.2"
,
RTLD_LAZY
|
RTLD_GLOBAL
,
NULL
,
0
))
{
...
...
@@ -821,7 +821,7 @@ LONG ALSA_WaveInit(void)
wwi
->
caps
.
dwFormats
=
0x00000000
;
wwi
->
caps
.
dwSupport
=
WAVECAPS_VOLUME
;
strcpy
(
wwi
->
ds_desc
.
szDesc
,
"WineALSA DirectSound Driver"
);
strcpy
(
wwi
->
ds_desc
.
szDrv
N
ame
,
"winealsa.drv"
);
strcpy
(
wwi
->
ds_desc
.
szDrv
n
ame
,
"winealsa.drv"
);
snd_pcm_info_alloca
(
&
info
);
snd_pcm_hw_params_alloca
(
&
hw_params
);
...
...
dlls/winmm/winearts/audio.c
View file @
7d92b5d8
...
...
@@ -2111,7 +2111,7 @@ static DWORD wodDsDesc(UINT wDevID, PDSDRIVERDESC desc)
{
memset
(
desc
,
0
,
sizeof
(
*
desc
));
strcpy
(
desc
->
szDesc
,
"Wine aRts DirectSound Driver"
);
strcpy
(
desc
->
szDrv
N
ame
,
"winearts.drv"
);
strcpy
(
desc
->
szDrv
n
ame
,
"winearts.drv"
);
return
MMSYSERR_NOERROR
;
}
...
...
dlls/winmm/wineaudioio/audio.c
View file @
7d92b5d8
...
...
@@ -1501,7 +1501,7 @@ static HRESULT WINAPI IDsDriverImpl_GetDriverDesc(PIDSDRIVER iface, PDSDRIVERDES
pDesc
->
dwFlags
=
DSDDESC_DOMMSYSTEMOPEN
|
DSDDESC_DOMMSYSTEMSETFORMAT
|
DSDDESC_USESYSTEMMEMORY
|
DSDDESC_DONTNEEDPRIMARYLOCK
;
strcpy
(
pDesc
->
szDesc
,
"Wine AudioIO DirectSound Driver"
);
strcpy
(
pDesc
->
szDrv
N
ame
,
"wineaudioio.drv"
);
strcpy
(
pDesc
->
szDrv
n
ame
,
"wineaudioio.drv"
);
pDesc
->
dnDevNode
=
WOutDev
[
This
->
wDevID
].
waveDesc
.
dnDevNode
;
pDesc
->
wVxdId
=
0
;
pDesc
->
wReserved
=
0
;
...
...
@@ -1678,7 +1678,7 @@ static DWORD wodDsDesc(UINT wDevID, PDSDRIVERDESC desc)
{
memset
(
desc
,
0
,
sizeof
(
*
desc
));
strcpy
(
desc
->
szDesc
,
"Wine LIBAUDIOIO DirectSound Driver"
);
strcpy
(
desc
->
szDrv
N
ame
,
"wineaudioio.drv"
);
strcpy
(
desc
->
szDrv
n
ame
,
"wineaudioio.drv"
);
return
MMSYSERR_NOERROR
;
}
...
...
@@ -2250,7 +2250,7 @@ static DWORD widDsDesc(UINT wDevID, PDSDRIVERDESC desc)
{
memset
(
desc
,
0
,
sizeof
(
*
desc
));
strcpy
(
desc
->
szDesc
,
"Wine LIBAUDIOIO DirectSound Driver"
);
strcpy
(
desc
->
szDrv
N
ame
,
"wineaudioio.drv"
);
strcpy
(
desc
->
szDrv
n
ame
,
"wineaudioio.drv"
);
return
MMSYSERR_NOERROR
;
}
...
...
dlls/winmm/winejack/audio.c
View file @
7d92b5d8
...
...
@@ -1795,7 +1795,7 @@ static DWORD wodDsDesc(UINT wDevID, PDSDRIVERDESC desc)
{
memset
(
desc
,
0
,
sizeof
(
*
desc
));
strcpy
(
desc
->
szDesc
,
"Wine jack DirectSound Driver"
);
strcpy
(
desc
->
szDrv
N
ame
,
"winejack.drv"
);
strcpy
(
desc
->
szDrv
n
ame
,
"winejack.drv"
);
return
MMSYSERR_NOERROR
;
}
...
...
dlls/winmm/winenas/audio.c
View file @
7d92b5d8
...
...
@@ -1297,7 +1297,7 @@ static DWORD wodDsDesc(UINT wDevID, PDSDRIVERDESC desc)
{
memset
(
desc
,
0
,
sizeof
(
*
desc
));
strcpy
(
desc
->
szDesc
,
"Wine NAS DirectSound Driver"
);
strcpy
(
desc
->
szDrv
N
ame
,
"winenas.drv"
);
strcpy
(
desc
->
szDrv
n
ame
,
"winenas.drv"
);
return
MMSYSERR_NOERROR
;
}
...
...
dlls/winmm/wineoss/audio.c
View file @
7d92b5d8
...
...
@@ -687,7 +687,7 @@ static BOOL OSS_WaveOutInit(OSS_DEVICE* ossdev)
mixer_info
info
;
if
(
ioctl
(
mixer
,
SOUND_MIXER_INFO
,
&
info
)
>=
0
)
{
strncpy
(
ossdev
->
ds_desc
.
szDesc
,
info
.
name
,
sizeof
(
info
.
name
));
strcpy
(
ossdev
->
ds_desc
.
szDrv
N
ame
,
"wineoss.drv"
);
strcpy
(
ossdev
->
ds_desc
.
szDrv
n
ame
,
"wineoss.drv"
);
MultiByteToWideChar
(
CP_ACP
,
0
,
info
.
name
,
sizeof
(
info
.
name
),
ossdev
->
out_caps
.
szPname
,
sizeof
(
ossdev
->
out_caps
.
szPname
)
/
sizeof
(
WCHAR
));
...
...
include/dsdriver.h
View file @
7d92b5d8
...
...
@@ -62,7 +62,7 @@ typedef struct _DSDRIVERDESC
{
DWORD
dwFlags
;
CHAR
szDesc
[
256
];
CHAR
szDrv
N
ame
[
256
];
CHAR
szDrv
n
ame
[
256
];
DWORD
dnDevNode
;
WORD
wVxdId
;
WORD
wReserved
;
...
...
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