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
4925b34c
Commit
4925b34c
authored
May 04, 2023
by
Zebediah Figura
Committed by
Alexandre Julliard
May 19, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
qcap/audiorecord: Implement DecideBufferSize().
parent
9c60c34c
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
0 deletions
+9
-0
audiorecord.c
dlls/qcap/audiorecord.c
+9
-0
No files found.
dlls/qcap/audiorecord.c
View file @
4925b34c
...
...
@@ -132,8 +132,17 @@ static HRESULT audio_record_source_get_media_type(struct strmbase_pin *iface,
static
HRESULT
WINAPI
audio_record_source_DecideBufferSize
(
struct
strmbase_source
*
iface
,
IMemAllocator
*
allocator
,
ALLOCATOR_PROPERTIES
*
props
)
{
struct
audio_record
*
filter
=
impl_from_strmbase_filter
(
iface
->
pin
.
filter
);
const
WAVEFORMATEX
*
format
=
(
void
*
)
filter
->
source
.
pin
.
mt
.
pbFormat
;
ALLOCATOR_PROPERTIES
ret_props
;
props
->
cBuffers
=
4
;
/* This is the algorithm that native uses. The alignment to an even number
* doesn't make much sense, and may be a bug. */
props
->
cbBuffer
=
(
format
->
nAvgBytesPerSec
/
2
)
&
~
1
;
props
->
cbAlign
=
1
;
props
->
cbPrefix
=
0
;
return
IMemAllocator_SetProperties
(
allocator
,
props
,
&
ret_props
);
}
...
...
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