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
fcc9b74c
Commit
fcc9b74c
authored
Jan 05, 2012
by
Jörg Höhle
Committed by
Alexandre Julliard
Jan 09, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mmdevapi: Round buffer size like native in shared mode.
parent
a4dd8fb6
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
mmdevdrv.c
dlls/winecoreaudio.drv/mmdevdrv.c
+1
-1
mmdevdrv.c
dlls/wineoss.drv/mmdevdrv.c
+1
-1
No files found.
dlls/winecoreaudio.drv/mmdevdrv.c
View file @
fcc9b74c
...
...
@@ -1006,7 +1006,7 @@ static HRESULT WINAPI AudioClient_Initialize(IAudioClient *iface,
This
->
period_ms
=
period
/
10000
;
This
->
bufsize_frames
=
ceil
(
fmt
->
nSamplesPerSec
*
(
duration
/
10000000
.)
);
This
->
bufsize_frames
=
MulDiv
(
duration
,
fmt
->
nSamplesPerSec
,
10000000
);
if
(
This
->
dataflow
==
eCapture
){
int
i
;
...
...
dlls/wineoss.drv/mmdevdrv.c
View file @
fcc9b74c
...
...
@@ -956,7 +956,7 @@ static HRESULT WINAPI AudioClient_Initialize(IAudioClient *iface,
This
->
period_us
=
period
/
10
;
This
->
bufsize_frames
=
ceil
(
fmt
->
nSamplesPerSec
*
(
duration
/
10000000
.)
);
This
->
bufsize_frames
=
MulDiv
(
duration
,
fmt
->
nSamplesPerSec
,
10000000
);
This
->
local_buffer
=
HeapAlloc
(
GetProcessHeap
(),
0
,
This
->
bufsize_frames
*
fmt
->
nBlockAlign
);
if
(
!
This
->
local_buffer
){
...
...
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