Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
wine
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Package registry
Container Registry
Model registry
Operate
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Yoann Laissus
wine
Commits
fdebace9
Commit
fdebace9
authored
23 years ago
by
Ove Kåven
Committed by
Alexandre Julliard
23 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Fix buffering problems in HEL mode.
parent
909bcde2
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
dlls/dsound/dsound_main.c
+9
-0
9 additions, 0 deletions
dlls/dsound/dsound_main.c
include/dsound.h
+2
-0
2 additions, 0 deletions
include/dsound.h
with
11 additions
and
0 deletions
dlls/dsound/dsound_main.c
+
9
−
0
View file @
fdebace9
...
...
@@ -2047,6 +2047,11 @@ static HRESULT WINAPI IDirectSoundImpl_CreateSoundBuffer(
primarybuf
->
dsbd
.
dwFlags
=
dsbd
->
dwFlags
;
return
DS_OK
;
}
/* Else create primary buffer */
}
else
{
if
(
dsbd
->
dwBufferBytes
<
DSBSIZE_MIN
||
dsbd
->
dwBufferBytes
>
DSBSIZE_MAX
)
{
ERR
(
"invalid sound buffer size %ld
\n
"
,
dsbd
->
dwBufferBytes
);
return
DSERR_INVALIDPARAM
;
/* FIXME: which error? */
}
}
*
ippdsb
=
(
IDirectSoundBufferImpl
*
)
HeapAlloc
(
GetProcessHeap
(),
HEAP_ZERO_MEMORY
,
sizeof
(
IDirectSoundBufferImpl
));
...
...
@@ -3215,6 +3220,10 @@ static void CALLBACK DSOUND_timer(UINT timerID, UINT msg, DWORD dwUser, DWORD dw
}
else
mixq
=
0
;
if
(
forced
)
mixq
=
DS_SND_QUEUE
;
/* Make sure that we don't rewrite any fragments that have already been
written and are waiting to be played */
mixq
=
(
dsound
->
pwqueue
>
mixq
)
?
0
:
(
mixq
-
dsound
->
pwqueue
);
/* output it */
for
(;
mixq
;
mixq
--
)
{
waveOutWrite
(
dsound
->
hwo
,
dsound
->
pwave
[
dsound
->
pwwrite
],
sizeof
(
WAVEHDR
));
...
...
This diff is collapsed.
Click to expand it.
include/dsound.h
+
2
−
0
View file @
fdebace9
...
...
@@ -130,6 +130,8 @@ typedef struct _DSCAPS
#define DSBCAPS_GETCURRENTPOSITION2 0x00010000
/* More accurate play cursor under emulation*/
#define DSBCAPS_MUTE3DATMAXDISTANCE 0x00020000
#define DSBSIZE_MIN 4
#define DSBSIZE_MAX 0xFFFFFFF
#define DSBPAN_LEFT -10000
#define DSBPAN_RIGHT 10000
#define DSBVOLUME_MAX 0
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment