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
6c33e872
Commit
6c33e872
authored
Sep 27, 2011
by
Andrew Eikum
Committed by
Alexandre Julliard
Sep 28, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dsound: Eliminate leftover driver structures.
parent
3960ea84
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
4 additions
and
63 deletions
+4
-63
capture.c
dlls/dsound/capture.c
+0
-2
dsound.c
dlls/dsound/dsound.c
+2
-4
dsound_private.h
dlls/dsound/dsound_private.h
+2
-56
primary.c
dlls/dsound/primary.c
+0
-1
No files found.
dlls/dsound/capture.c
View file @
6c33e872
...
...
@@ -1029,8 +1029,6 @@ static HRESULT DirectSoundCaptureDevice_Initialize(
device
->
mmdevice
=
mmdevice
;
device
->
drvdesc
.
dwFlags
=
0
;
device
->
drvcaps
.
dwFlags
=
0
;
device
->
drvcaps
.
dwFormats
=
0
;
...
...
dlls/dsound/dsound.c
View file @
6c33e872
...
...
@@ -1335,10 +1335,8 @@ HRESULT DirectSoundDevice_GetCaps(
lpDSCaps
->
dwTotalHwMemBytes
=
device
->
drvcaps
.
dwTotalHwMemBytes
;
lpDSCaps
->
dwFreeHwMemBytes
=
device
->
drvcaps
.
dwFreeHwMemBytes
;
lpDSCaps
->
dwMaxContigFreeHwMemBytes
=
device
->
drvcaps
.
dwMaxContigFreeHwMemBytes
;
/* driver doesn't have these */
lpDSCaps
->
dwUnlockTransferRateHwBuffers
=
4096
;
/* But we have none... */
lpDSCaps
->
dwPlayCpuOverheadSwBuffers
=
1
;
/* 1% */
lpDSCaps
->
dwUnlockTransferRateHwBuffers
=
device
->
drvcaps
.
dwUnlockTransferRateHwBuffers
;
lpDSCaps
->
dwPlayCpuOverheadSwBuffers
=
device
->
drvcaps
.
dwPlayCpuOverheadSwBuffers
;
return
DS_OK
;
}
...
...
dlls/dsound/dsound_private.h
View file @
6c33e872
...
...
@@ -65,47 +65,6 @@ extern const mixfunc mixfunctions[4] DECLSPEC_HIDDEN;
typedef
void
(
*
normfunc
)(
const
void
*
,
void
*
,
unsigned
);
extern
const
normfunc
normfunctions
[
4
]
DECLSPEC_HIDDEN
;
typedef
struct
_DSDRIVERDESC
{
DWORD
dwFlags
;
CHAR
szDesc
[
256
];
CHAR
szDrvname
[
256
];
DWORD
dnDevNode
;
WORD
wVxdId
;
WORD
wReserved
;
ULONG
ulDeviceNum
;
DWORD
dwHeapType
;
LPVOID
pvDirectDrawHeap
;
DWORD
dwMemStartAddress
;
DWORD
dwMemEndAddress
;
DWORD
dwMemAllocExtra
;
LPVOID
pvReserved1
;
LPVOID
pvReserved2
;
}
DSDRIVERDESC
,
*
PDSDRIVERDESC
;
typedef
struct
_DSDRIVERCAPS
{
DWORD
dwFlags
;
DWORD
dwMinSecondarySampleRate
;
DWORD
dwMaxSecondarySampleRate
;
DWORD
dwPrimaryBuffers
;
DWORD
dwMaxHwMixingAllBuffers
;
DWORD
dwMaxHwMixingStaticBuffers
;
DWORD
dwMaxHwMixingStreamingBuffers
;
DWORD
dwFreeHwMixingAllBuffers
;
DWORD
dwFreeHwMixingStaticBuffers
;
DWORD
dwFreeHwMixingStreamingBuffers
;
DWORD
dwMaxHw3DAllBuffers
;
DWORD
dwMaxHw3DStaticBuffers
;
DWORD
dwMaxHw3DStreamingBuffers
;
DWORD
dwFreeHw3DAllBuffers
;
DWORD
dwFreeHw3DStaticBuffers
;
DWORD
dwFreeHw3DStreamingBuffers
;
DWORD
dwTotalHwMemBytes
;
DWORD
dwFreeHwMemBytes
;
DWORD
dwMaxContigFreeHwMemBytes
;
}
DSDRIVERCAPS
,
*
PDSDRIVERCAPS
;
typedef
struct
_DSVOLUMEPAN
{
DWORD
dwTotalLeftAmpFactor
;
...
...
@@ -117,14 +76,6 @@ typedef struct _DSVOLUMEPAN
DWORD
dwPanRightAmpFactor
;
}
DSVOLUMEPAN
,
*
PDSVOLUMEPAN
;
typedef
struct
_DSCDRIVERCAPS
{
DWORD
dwSize
;
DWORD
dwFlags
;
DWORD
dwFormats
;
DWORD
dwChannels
;
}
DSCDRIVERCAPS
,
*
PDSCDRIVERCAPS
;
/*****************************************************************************
* IDirectSoundDevice implementation structure
*/
...
...
@@ -133,8 +84,7 @@ struct DirectSoundDevice
LONG
ref
;
GUID
guid
;
DSDRIVERDESC
drvdesc
;
DSDRIVERCAPS
drvcaps
;
DSCAPS
drvcaps
;
DWORD
priolevel
;
PWAVEFORMATEX
pwfx
;
UINT
timerID
,
pwplay
,
pwqueue
,
prebuf
,
helfrags
;
...
...
@@ -272,15 +222,11 @@ void secondarybuffer_destroy(IDirectSoundBufferImpl *This) DECLSPEC_HIDDEN;
*/
struct
DirectSoundCaptureDevice
{
/* IDirectSoundCaptureImpl fields */
GUID
guid
;
LONG
ref
;
/* DirectSound driver stuff */
DSDRIVERDESC
drvdesc
;
DSCDRIVERCAPS
drvcaps
;
DSCCAPS
drvcaps
;
/* more stuff */
LPBYTE
buffer
;
DWORD
buflen
,
write_pos_bytes
;
...
...
dlls/dsound/primary.c
View file @
6c33e872
...
...
@@ -105,7 +105,6 @@ HRESULT DSOUND_ReopenDevice(DirectSoundDevice *device, BOOL forcewave)
device
->
volume
=
NULL
;
}
device
->
drvdesc
.
dwFlags
=
0
;
hres
=
IMMDevice_Activate
(
device
->
mmdevice
,
&
IID_IAudioClient
,
CLSCTX_INPROC_SERVER
,
NULL
,
(
void
**
)
&
device
->
client
);
if
(
FAILED
(
hres
)){
...
...
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