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
fdebace9
Commit
fdebace9
authored
Sep 10, 2001
by
Ove Kaaven
Committed by
Alexandre Julliard
Sep 10, 2001
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix buffering problems in HEL mode.
parent
909bcde2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
0 deletions
+11
-0
dsound_main.c
dlls/dsound/dsound_main.c
+9
-0
dsound.h
include/dsound.h
+2
-0
No files found.
dlls/dsound/dsound_main.c
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
));
...
...
include/dsound.h
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
...
...
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