Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
d53fdd0e
Commit
d53fdd0e
authored
May 04, 2023
by
Zebediah Figura
Committed by
Alexandre Julliard
May 12, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
qcap/audiorecord: Partially implement QueryAccept().
parent
c752b561
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
4 deletions
+16
-4
audiorecord.c
dlls/qcap/audiorecord.c
+12
-0
audiorecord.c
dlls/qcap/tests/audiorecord.c
+4
-4
No files found.
dlls/qcap/audiorecord.c
View file @
d53fdd0e
...
...
@@ -50,6 +50,17 @@ static HRESULT audio_record_source_query_interface(struct strmbase_pin *iface, R
return
S_OK
;
}
static
HRESULT
audio_record_source_query_accept
(
struct
strmbase_pin
*
iface
,
const
AM_MEDIA_TYPE
*
mt
)
{
if
(
!
IsEqualGUID
(
&
mt
->
majortype
,
&
MEDIATYPE_Audio
))
return
S_FALSE
;
if
(
!
IsEqualGUID
(
&
mt
->
formattype
,
&
FORMAT_WaveFormatEx
))
return
S_FALSE
;
return
S_OK
;
}
static
const
struct
{
unsigned
int
rate
;
...
...
@@ -129,6 +140,7 @@ static HRESULT WINAPI audio_record_source_DecideBufferSize(struct strmbase_sourc
static
const
struct
strmbase_source_ops
source_ops
=
{
.
base
.
pin_get_media_type
=
audio_record_source_get_media_type
,
.
base
.
pin_query_accept
=
audio_record_source_query_accept
,
.
base
.
pin_query_interface
=
audio_record_source_query_interface
,
.
pfnAttemptConnection
=
BaseOutputPinImpl_AttemptConnection
,
.
pfnDecideAllocator
=
BaseOutputPinImpl_DecideAllocator
,
...
...
dlls/qcap/tests/audiorecord.c
View file @
d53fdd0e
...
...
@@ -443,18 +443,18 @@ static void test_media_types(IBaseFilter *filter)
init_pcm_mt
(
&
mt
,
&
format
,
1
,
44100
,
8
);
mt
.
majortype
=
MEDIATYPE_Stream
;
hr
=
IPin_QueryAccept
(
pin
,
&
mt
);
todo_wine
ok
(
hr
==
S_FALSE
,
"Got hr %#lx.
\n
"
,
hr
);
ok
(
hr
==
S_FALSE
,
"Got hr %#lx.
\n
"
,
hr
);
mt
.
majortype
=
GUID_NULL
;
hr
=
IPin_QueryAccept
(
pin
,
&
mt
);
todo_wine
ok
(
hr
==
S_FALSE
,
"Got hr %#lx.
\n
"
,
hr
);
ok
(
hr
==
S_FALSE
,
"Got hr %#lx.
\n
"
,
hr
);
init_pcm_mt
(
&
mt
,
&
format
,
1
,
44100
,
8
);
mt
.
formattype
=
FORMAT_None
;
hr
=
IPin_QueryAccept
(
pin
,
&
mt
);
todo_wine
ok
(
hr
==
S_FALSE
,
"Got hr %#lx.
\n
"
,
hr
);
ok
(
hr
==
S_FALSE
,
"Got hr %#lx.
\n
"
,
hr
);
mt
.
formattype
=
GUID_NULL
;
hr
=
IPin_QueryAccept
(
pin
,
&
mt
);
todo_wine
ok
(
hr
==
S_FALSE
,
"Got hr %#lx.
\n
"
,
hr
);
ok
(
hr
==
S_FALSE
,
"Got hr %#lx.
\n
"
,
hr
);
init_pcm_mt
(
&
mt
,
&
format
,
1
,
44100
,
8
);
format
.
wFormatTag
=
0xdead
;
...
...
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