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
704e16c3
Commit
704e16c3
authored
Aug 11, 2004
by
Robert Reif
Committed by
Alexandre Julliard
Aug 11, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed a bug where freqAdjust was not being updated properly when the
primary buffer format changed.
parent
06b8046f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
primary.c
dlls/dsound/primary.c
+4
-2
No files found.
dlls/dsound/primary.c
View file @
704e16c3
...
...
@@ -340,7 +340,8 @@ static HRESULT WINAPI PrimaryBufferImpl_SetFormat(
ICOM_THIS
(
PrimaryBufferImpl
,
iface
);
IDirectSoundImpl
*
dsound
=
This
->
dsound
;
HRESULT
err
=
DS_OK
;
int
i
;
int
i
;
DWORD
nSamplesPerSec
;
TRACE
(
"(%p,%p)
\n
"
,
This
,
wfex
);
if
(
This
->
dsound
->
priolevel
==
DSSCL_NORMAL
)
{
...
...
@@ -370,6 +371,7 @@ static HRESULT WINAPI PrimaryBufferImpl_SetFormat(
/* **** */
RtlAcquireResourceExclusive
(
&
(
dsound
->
lock
),
TRUE
);
nSamplesPerSec
=
dsound
->
wfx
.
nSamplesPerSec
;
dsound
->
wfx
.
nSamplesPerSec
=
wfex
->
nSamplesPerSec
;
dsound
->
wfx
.
nChannels
=
wfex
->
nChannels
;
dsound
->
wfx
.
wBitsPerSample
=
wfex
->
wBitsPerSample
;
...
...
@@ -425,7 +427,7 @@ static HRESULT WINAPI PrimaryBufferImpl_SetFormat(
}
DSOUND_RecalcPrimary
(
dsound
);
if
(
dsound
->
wfx
.
nSamplesPerSec
!=
wfex
->
nSamplesPerSec
)
{
if
(
nSamplesPerSec
!=
dsound
->
wfx
.
nSamplesPerSec
)
{
IDirectSoundBufferImpl
**
dsb
=
dsound
->
buffers
;
for
(
i
=
0
;
i
<
dsound
->
nrofbuffers
;
i
++
,
dsb
++
)
{
/* **** */
...
...
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