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
7bd2e99b
Commit
7bd2e99b
authored
Apr 26, 2023
by
Anton Baskanov
Committed by
Alexandre Julliard
Apr 27, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dsound: Remove the unused nAvgBytesPerSec field.
parent
7a9679a7
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
4 deletions
+0
-4
buffer.c
dlls/dsound/buffer.c
+0
-3
dsound_private.h
dlls/dsound/dsound_private.h
+0
-1
No files found.
dlls/dsound/buffer.c
View file @
7bd2e99b
...
...
@@ -293,7 +293,6 @@ static HRESULT WINAPI IDirectSoundBufferImpl_SetFrequency(IDirectSoundBuffer8 *i
if
(
freq
!=
oldFreq
)
{
This
->
freqAdjustNum
=
This
->
freq
;
This
->
freqAdjustDen
=
This
->
device
->
pwfx
->
nSamplesPerSec
;
This
->
nAvgBytesPerSec
=
freq
*
This
->
pwfx
->
nBlockAlign
;
DSOUND_RecalcFormat
(
This
);
newcommitted
=
realloc
(
This
->
committedbuff
,
This
->
writelead
);
...
...
@@ -1114,8 +1113,6 @@ HRESULT secondarybuffer_create(DirectSoundDevice *device, const DSBUFFERDESC *ds
dsb
->
freqAdjustNum
=
dsb
->
freq
;
dsb
->
freqAdjustDen
=
device
->
pwfx
->
nSamplesPerSec
;
dsb
->
nAvgBytesPerSec
=
dsb
->
freq
*
dsbd
->
lpwfxFormat
->
nBlockAlign
;
/* calculate fragment size and write lead */
DSOUND_RecalcFormat
(
dsb
);
...
...
dlls/dsound/dsound_private.h
View file @
7bd2e99b
...
...
@@ -141,7 +141,6 @@ struct IDirectSoundBufferImpl
BufferMemory
*
buffer
;
DWORD
playflags
,
state
,
leadin
;
DWORD
writelead
,
buflen
;
DWORD
nAvgBytesPerSec
;
DWORD
freq
;
DSVOLUMEPAN
volpan
;
DSBUFFERDESC
dsbd
;
...
...
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