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
a01d6be6
Commit
a01d6be6
authored
Apr 27, 2012
by
Aric Stewart
Committed by
Alexandre Julliard
Apr 30, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
strmbase: Implement BasicAudio.
parent
d53bdeca
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
103 additions
and
0 deletions
+103
-0
Makefile.in
dlls/strmbase/Makefile.in
+1
-0
audio.c
dlls/strmbase/audio.c
+86
-0
strmbase.h
include/wine/strmbase.h
+16
-0
No files found.
dlls/strmbase/Makefile.in
View file @
a01d6be6
MODULE
=
libstrmbase.a
C_SRCS
=
\
audio.c
\
dispatch.c
\
dllfunc.c
\
enumpins.c
\
...
...
dlls/strmbase/audio.c
0 → 100644
View file @
a01d6be6
/*
* Generic Implementation of strmbase audio classes
*
* Copyright 2012 Aric Stewart, CodeWeavers
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
#define COBJMACROS
#include <assert.h>
#include "dshow.h"
#include "uuids.h"
#include "vfwmsgs.h"
#include "wine/debug.h"
#include "wine/unicode.h"
#include "wine/strmbase.h"
WINE_DEFAULT_DEBUG_CHANNEL
(
strmbase
);
static
inline
BasicAudio
*
impl_from_IBasicAudio
(
IBasicAudio
*
iface
)
{
return
CONTAINING_RECORD
(
iface
,
BasicAudio
,
IBasicAudio_iface
);
}
HRESULT
WINAPI
BasicAudio_Init
(
BasicAudio
*
pBasicAudio
,
const
IBasicAudioVtbl
*
lpVtbl
)
{
pBasicAudio
->
IBasicAudio_iface
.
lpVtbl
=
lpVtbl
;
BaseDispatch_Init
(
&
pBasicAudio
->
baseDispatch
,
&
IID_IBasicAudio
);
return
S_OK
;
}
HRESULT
WINAPI
BasicAudio_Destroy
(
BasicAudio
*
pBasicAudio
)
{
return
BaseDispatch_Destroy
(
&
pBasicAudio
->
baseDispatch
);
}
HRESULT
WINAPI
BasicAudioImpl_GetTypeInfoCount
(
IBasicAudio
*
iface
,
UINT
*
pctinfo
)
{
BasicAudio
*
This
=
impl_from_IBasicAudio
(
iface
);
return
BaseDispatchImpl_GetTypeInfoCount
(
&
This
->
baseDispatch
,
pctinfo
);
}
HRESULT
WINAPI
BasicAudioImpl_GetTypeInfo
(
IBasicAudio
*
iface
,
UINT
iTInfo
,
LCID
lcid
,
ITypeInfo
**
ppTInfo
)
{
BasicAudio
*
This
=
impl_from_IBasicAudio
(
iface
);
return
BaseDispatchImpl_GetTypeInfo
(
&
This
->
baseDispatch
,
&
IID_NULL
,
iTInfo
,
lcid
,
ppTInfo
);
}
HRESULT
WINAPI
BasicAudioImpl_GetIDsOfNames
(
IBasicAudio
*
iface
,
REFIID
riid
,
LPOLESTR
*
rgszNames
,
UINT
cNames
,
LCID
lcid
,
DISPID
*
rgDispId
)
{
BasicAudio
*
This
=
impl_from_IBasicAudio
(
iface
);
return
BaseDispatchImpl_GetIDsOfNames
(
&
This
->
baseDispatch
,
riid
,
rgszNames
,
cNames
,
lcid
,
rgDispId
);
}
HRESULT
WINAPI
BasicAudioImpl_Invoke
(
IBasicAudio
*
iface
,
DISPID
dispIdMember
,
REFIID
riid
,
LCID
lcid
,
WORD
wFlags
,
DISPPARAMS
*
pDispParams
,
VARIANT
*
pVarResult
,
EXCEPINFO
*
pExepInfo
,
UINT
*
puArgErr
)
{
BasicAudio
*
This
=
impl_from_IBasicAudio
(
iface
);
HRESULT
hr
=
S_OK
;
ITypeInfo
*
pTypeInfo
;
hr
=
BaseDispatchImpl_GetTypeInfo
(
&
This
->
baseDispatch
,
riid
,
1
,
lcid
,
&
pTypeInfo
);
if
(
SUCCEEDED
(
hr
))
{
hr
=
ITypeInfo_Invoke
(
pTypeInfo
,
&
This
->
IBasicAudio_iface
,
dispIdMember
,
wFlags
,
pDispParams
,
pVarResult
,
pExepInfo
,
puArgErr
);
ITypeInfo_Release
(
pTypeInfo
);
}
return
hr
;
}
include/wine/strmbase.h
View file @
a01d6be6
...
...
@@ -635,6 +635,22 @@ HRESULT WINAPI BaseRendererImpl_ClearPendingSample(BaseRenderer *iface);
HRESULT
WINAPI
BaseRenderer_Init
(
BaseRenderer
*
This
,
const
IBaseFilterVtbl
*
Vtbl
,
IUnknown
*
pUnkOuter
,
const
CLSID
*
pClsid
,
DWORD_PTR
DebugInfo
,
const
BaseRendererFuncTable
*
pBaseFuncsTable
);
#ifdef __IBasicAudio_FWD_DEFINED__
typedef
struct
tagBasicAudio
{
IBasicAudio
IBasicAudio_iface
;
BaseDispatch
baseDispatch
;
}
BasicAudio
;
HRESULT
WINAPI
BasicAudio_Init
(
BasicAudio
*
This
,
const
IBasicAudioVtbl
*
Vtbl
);
HRESULT
WINAPI
BasicAudio_Destroy
(
BasicAudio
*
pBasicAudio
);
HRESULT
WINAPI
BasicAudioImpl_GetTypeInfoCount
(
IBasicAudio
*
iface
,
UINT
*
pctinfo
);
HRESULT
WINAPI
BasicAudioImpl_GetTypeInfo
(
IBasicAudio
*
iface
,
UINT
iTInfo
,
LCID
lcid
,
ITypeInfo
**
ppTInfo
);
HRESULT
WINAPI
BasicAudioImpl_GetIDsOfNames
(
IBasicAudio
*
iface
,
REFIID
riid
,
LPOLESTR
*
rgszNames
,
UINT
cNames
,
LCID
lcid
,
DISPID
*
rgDispId
);
HRESULT
WINAPI
BasicAudioImpl_Invoke
(
IBasicAudio
*
iface
,
DISPID
dispIdMember
,
REFIID
riid
,
LCID
lcid
,
WORD
wFlags
,
DISPPARAMS
*
pDispParams
,
VARIANT
*
pVarResult
,
EXCEPINFO
*
pExepInfo
,
UINT
*
puArgErr
);
#endif
/* Dll Functions */
BOOL
WINAPI
STRMBASE_DllMain
(
HINSTANCE
hInstDLL
,
DWORD
fdwReason
,
LPVOID
lpv
);
HRESULT
WINAPI
STRMBASE_DllGetClassObject
(
REFCLSID
rclsid
,
REFIID
riid
,
LPVOID
*
ppv
);
...
...
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