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
eab26e61
Commit
eab26e61
authored
May 01, 2023
by
Zebediah Figura
Committed by
Alexandre Julliard
May 11, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
qcap/audiorecord: Get rid of the AudioRecord typedef.
parent
483a2203
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
19 deletions
+23
-19
audiorecord.c
dlls/qcap/audiorecord.c
+23
-19
No files found.
dlls/qcap/audiorecord.c
View file @
eab26e61
...
...
@@ -21,19 +21,20 @@
WINE_DEFAULT_DEBUG_CHANNEL
(
quartz
);
typedef
struct
{
struct
audio_record
{
struct
strmbase_filter
filter
;
IPersistPropertyBag
IPersistPropertyBag_iface
;
}
AudioRecord
;
};
static
inline
AudioR
ecord
*
impl_from_strmbase_filter
(
struct
strmbase_filter
*
filter
)
static
struct
audio_r
ecord
*
impl_from_strmbase_filter
(
struct
strmbase_filter
*
filter
)
{
return
CONTAINING_RECORD
(
filter
,
AudioR
ecord
,
filter
);
return
CONTAINING_RECORD
(
filter
,
struct
audio_r
ecord
,
filter
);
}
static
inline
AudioR
ecord
*
impl_from_IPersistPropertyBag
(
IPersistPropertyBag
*
iface
)
static
struct
audio_r
ecord
*
impl_from_IPersistPropertyBag
(
IPersistPropertyBag
*
iface
)
{
return
CONTAINING_RECORD
(
iface
,
AudioR
ecord
,
IPersistPropertyBag_iface
);
return
CONTAINING_RECORD
(
iface
,
struct
audio_r
ecord
,
IPersistPropertyBag_iface
);
}
static
struct
strmbase_pin
*
audio_record_get_pin
(
struct
strmbase_filter
*
iface
,
unsigned
int
index
)
...
...
@@ -44,7 +45,7 @@ static struct strmbase_pin *audio_record_get_pin(struct strmbase_filter *iface,
static
void
audio_record_destroy
(
struct
strmbase_filter
*
iface
)
{
AudioR
ecord
*
filter
=
impl_from_strmbase_filter
(
iface
);
struct
audio_r
ecord
*
filter
=
impl_from_strmbase_filter
(
iface
);
strmbase_filter_cleanup
(
&
filter
->
filter
);
free
(
filter
);
...
...
@@ -52,7 +53,7 @@ static void audio_record_destroy(struct strmbase_filter *iface)
static
HRESULT
audio_record_query_interface
(
struct
strmbase_filter
*
iface
,
REFIID
iid
,
void
**
out
)
{
AudioR
ecord
*
filter
=
impl_from_strmbase_filter
(
iface
);
struct
audio_r
ecord
*
filter
=
impl_from_strmbase_filter
(
iface
);
if
(
IsEqualGUID
(
iid
,
&
IID_IPersistPropertyBag
))
*
out
=
&
filter
->
IPersistPropertyBag_iface
;
...
...
@@ -72,32 +73,35 @@ static const struct strmbase_filter_ops filter_ops =
static
HRESULT
WINAPI
PPB_QueryInterface
(
IPersistPropertyBag
*
iface
,
REFIID
riid
,
LPVOID
*
ppv
)
{
AudioRecord
*
This
=
impl_from_IPersistPropertyBag
(
iface
);
return
IUnknown_QueryInterface
(
This
->
filter
.
outer_unk
,
riid
,
ppv
);
struct
audio_record
*
filter
=
impl_from_IPersistPropertyBag
(
iface
);
return
IUnknown_QueryInterface
(
filter
->
filter
.
outer_unk
,
riid
,
ppv
);
}
static
ULONG
WINAPI
PPB_AddRef
(
IPersistPropertyBag
*
iface
)
{
AudioRecord
*
This
=
impl_from_IPersistPropertyBag
(
iface
);
return
IUnknown_AddRef
(
This
->
filter
.
outer_unk
);
struct
audio_record
*
filter
=
impl_from_IPersistPropertyBag
(
iface
);
return
IUnknown_AddRef
(
filter
->
filter
.
outer_unk
);
}
static
ULONG
WINAPI
PPB_Release
(
IPersistPropertyBag
*
iface
)
{
AudioRecord
*
This
=
impl_from_IPersistPropertyBag
(
iface
);
return
IUnknown_Release
(
This
->
filter
.
outer_unk
);
struct
audio_record
*
filter
=
impl_from_IPersistPropertyBag
(
iface
);
return
IUnknown_Release
(
filter
->
filter
.
outer_unk
);
}
static
HRESULT
WINAPI
PPB_GetClassID
(
IPersistPropertyBag
*
iface
,
CLSID
*
pClassID
)
{
AudioR
ecord
*
This
=
impl_from_IPersistPropertyBag
(
iface
);
struct
audio_r
ecord
*
This
=
impl_from_IPersistPropertyBag
(
iface
);
TRACE
(
"(%p/%p)->(%p)
\n
"
,
iface
,
This
,
pClassID
);
return
IBaseFilter_GetClassID
(
&
This
->
filter
.
IBaseFilter_iface
,
pClassID
);
}
static
HRESULT
WINAPI
PPB_InitNew
(
IPersistPropertyBag
*
iface
)
{
AudioR
ecord
*
This
=
impl_from_IPersistPropertyBag
(
iface
);
struct
audio_r
ecord
*
This
=
impl_from_IPersistPropertyBag
(
iface
);
FIXME
(
"(%p/%p)->(): stub
\n
"
,
iface
,
This
);
return
E_NOTIMPL
;
}
...
...
@@ -105,7 +109,7 @@ static HRESULT WINAPI PPB_InitNew(IPersistPropertyBag *iface)
static
HRESULT
WINAPI
PPB_Load
(
IPersistPropertyBag
*
iface
,
IPropertyBag
*
pPropBag
,
IErrorLog
*
pErrorLog
)
{
AudioR
ecord
*
This
=
impl_from_IPersistPropertyBag
(
iface
);
struct
audio_r
ecord
*
This
=
impl_from_IPersistPropertyBag
(
iface
);
HRESULT
hr
;
VARIANT
var
;
...
...
@@ -124,7 +128,7 @@ static HRESULT WINAPI PPB_Load(IPersistPropertyBag *iface, IPropertyBag *pPropBa
static
HRESULT
WINAPI
PPB_Save
(
IPersistPropertyBag
*
iface
,
IPropertyBag
*
pPropBag
,
BOOL
fClearDirty
,
BOOL
fSaveAllProperties
)
{
AudioR
ecord
*
This
=
impl_from_IPersistPropertyBag
(
iface
);
struct
audio_r
ecord
*
This
=
impl_from_IPersistPropertyBag
(
iface
);
FIXME
(
"(%p/%p)->(%p, %u, %u): stub
\n
"
,
iface
,
This
,
pPropBag
,
fClearDirty
,
fSaveAllProperties
);
return
E_NOTIMPL
;
}
...
...
@@ -142,7 +146,7 @@ static const IPersistPropertyBagVtbl PersistPropertyBagVtbl =
HRESULT
audio_record_create
(
IUnknown
*
outer
,
IUnknown
**
out
)
{
AudioR
ecord
*
object
;
struct
audio_r
ecord
*
object
;
if
(
!
(
object
=
calloc
(
1
,
sizeof
(
*
object
))))
return
E_OUTOFMEMORY
;
...
...
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