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
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
primary.c
dlls/dsound/primary.c
+3
-1
No files found.
dlls/dsound/primary.c
View file @
704e16c3
...
...
@@ -341,6 +341,7 @@ static HRESULT WINAPI PrimaryBufferImpl_SetFormat(
IDirectSoundImpl
*
dsound
=
This
->
dsound
;
HRESULT
err
=
DS_OK
;
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