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
7c3046db
Commit
7c3046db
authored
Oct 22, 1998
by
Marcus Meissner
Committed by
Alexandre Julliard
Oct 22, 1998
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Some programs (quake2 et al) do check for DSCAPS_EMULDRIVER and stop
to work. 'Adjust' caps flags accordingly.
parent
d4ea0108
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
dsound.c
multimedia/dsound.c
+5
-3
No files found.
multimedia/dsound.c
View file @
7c3046db
...
...
@@ -369,7 +369,7 @@ static HRESULT WINAPI IDirectSoundBuffer_GetCaps(
)
{
caps
->
dwSize
=
sizeof
(
*
caps
);
caps
->
dwFlags
=
DSBCAPS_PRIMARYBUFFER
|
DSBCAPS_STATIC
|
DSBCAPS_CTRLALL
|
DSBCAPS_LOCSOFTWARE
;
caps
->
dwBufferBytes
=
0
;
caps
->
dwBufferBytes
=
65536
;
caps
->
dwUnlockTransferRate
=
0
;
caps
->
dwPlayCpuOverhead
=
0
;
return
DS_OK
;
...
...
@@ -493,7 +493,7 @@ static HRESULT WINAPI IDirectSound_GetCaps(LPDIRECTSOUND this,LPDSCAPS caps) {
TRACE
(
dsound
,
"(flags=0x%08lx)
\n
"
,
caps
->
dwFlags
);
caps
->
dwSize
=
sizeof
(
*
caps
);
caps
->
dwFlags
=
DSCAPS_PRIMARYSTEREO
|
DSCAPS_PRIMARY16BIT
|
DSCAPS_
EMULDRIVER
|
DSCAPS_
SECONDARYSTEREO
|
DSCAPS_SECONDARY16BIT
;
caps
->
dwFlags
=
DSCAPS_PRIMARYSTEREO
|
DSCAPS_PRIMARY16BIT
|
DSCAPS_SECONDARYSTEREO
|
DSCAPS_SECONDARY16BIT
;
/* FIXME: query OSS */
caps
->
dwMinSecondarySampleRate
=
22050
;
caps
->
dwMaxSecondarySampleRate
=
48000
;
...
...
@@ -503,10 +503,12 @@ static HRESULT WINAPI IDirectSound_GetCaps(LPDIRECTSOUND this,LPDSCAPS caps) {
}
static
ULONG
WINAPI
IDirectSound_AddRef
(
LPDIRECTSOUND
this
)
{
TRACE
(
dsound
,
"(%p), ref was %d
\n
"
,
this
,
this
->
ref
);
return
++
(
this
->
ref
);
}
static
ULONG
WINAPI
IDirectSound_Release
(
LPDIRECTSOUND
this
)
{
TRACE
(
dsound
,
"(%p), ref was %d
\n
"
,
this
,
this
->
ref
);
if
(
!--
(
this
->
ref
))
{
HeapFree
(
GetProcessHeap
(),
0
,
this
);
dsound
=
NULL
;
...
...
@@ -922,11 +924,11 @@ DSOUND_thread(LPVOID arg) {
if
(
!
dsound
->
nrofbuffers
)
{
/* no soundbuffer yet... wait. */
Sleep
(
1000
);
dsound
->
lpvtbl
->
fnRelease
(
dsound
);
continue
;
}
memset
(
playbuf
,
0
,
sizeof
(
playbuf
));
playing
=
0
;
dsound
->
lpvtbl
->
fnAddRef
(
dsound
);
haveprimary
=
0
;
for
(
i
=
dsound
->
nrofbuffers
;
i
--
;)
{
IDirectSoundBuffer
*
dsb
=
dsound
->
buffers
[
i
];
...
...
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