| 1 | /* $Id: ibasaud.c,v 1.2 2001-09-05 13:36:35 bird Exp $ */
|
|---|
| 2 | /*
|
|---|
| 3 | * Implementation of IBasicAudio for FilterGraph.
|
|---|
| 4 | *
|
|---|
| 5 | * FIXME - stub.
|
|---|
| 6 | *
|
|---|
| 7 | * hidenori@a2.ctktv.ne.jp
|
|---|
| 8 | */
|
|---|
| 9 |
|
|---|
| 10 | #include "config.h"
|
|---|
| 11 |
|
|---|
| 12 | #include "windef.h"
|
|---|
| 13 | #include "winbase.h"
|
|---|
| 14 | #include "wingdi.h"
|
|---|
| 15 | #include "winerror.h"
|
|---|
| 16 | #include "wine/obj_base.h"
|
|---|
| 17 | #include "wine/obj_oleaut.h"
|
|---|
| 18 | #include "strmif.h"
|
|---|
| 19 | #include "control.h"
|
|---|
| 20 | #include "uuids.h"
|
|---|
| 21 |
|
|---|
| 22 | #include "debugtools.h"
|
|---|
| 23 | DEFAULT_DEBUG_CHANNEL(quartz);
|
|---|
| 24 |
|
|---|
| 25 | #include "quartz_private.h"
|
|---|
| 26 | #include "fgraph.h"
|
|---|
| 27 |
|
|---|
| 28 |
|
|---|
| 29 |
|
|---|
| 30 | static HRESULT WINAPI
|
|---|
| 31 | IBasicAudio_fnQueryInterface(IBasicAudio* iface,REFIID riid,void** ppobj)
|
|---|
| 32 | {
|
|---|
| 33 | CFilterGraph_THIS(iface,basaud);
|
|---|
| 34 |
|
|---|
| 35 | TRACE("(%p)->()\n",This);
|
|---|
| 36 |
|
|---|
| 37 | return IUnknown_QueryInterface(This->unk.punkControl,riid,ppobj);
|
|---|
| 38 | }
|
|---|
| 39 |
|
|---|
| 40 | static ULONG WINAPI
|
|---|
| 41 | IBasicAudio_fnAddRef(IBasicAudio* iface)
|
|---|
| 42 | {
|
|---|
| 43 | CFilterGraph_THIS(iface,basaud);
|
|---|
| 44 |
|
|---|
| 45 | TRACE("(%p)->()\n",This);
|
|---|
| 46 |
|
|---|
| 47 | return IUnknown_AddRef(This->unk.punkControl);
|
|---|
| 48 | }
|
|---|
| 49 |
|
|---|
| 50 | static ULONG WINAPI
|
|---|
| 51 | IBasicAudio_fnRelease(IBasicAudio* iface)
|
|---|
| 52 | {
|
|---|
| 53 | CFilterGraph_THIS(iface,basaud);
|
|---|
| 54 |
|
|---|
| 55 | TRACE("(%p)->()\n",This);
|
|---|
| 56 |
|
|---|
| 57 | return IUnknown_Release(This->unk.punkControl);
|
|---|
| 58 | }
|
|---|
| 59 |
|
|---|
| 60 | static HRESULT WINAPI
|
|---|
| 61 | IBasicAudio_fnGetTypeInfoCount(IBasicAudio* iface,UINT* pcTypeInfo)
|
|---|
| 62 | {
|
|---|
| 63 | CFilterGraph_THIS(iface,basaud);
|
|---|
| 64 |
|
|---|
| 65 | FIXME("(%p)->()\n",This);
|
|---|
| 66 |
|
|---|
| 67 | return E_NOTIMPL;
|
|---|
| 68 | }
|
|---|
| 69 |
|
|---|
| 70 | static HRESULT WINAPI
|
|---|
| 71 | IBasicAudio_fnGetTypeInfo(IBasicAudio* iface,UINT iTypeInfo, LCID lcid, ITypeInfo** ppobj)
|
|---|
| 72 | {
|
|---|
| 73 | CFilterGraph_THIS(iface,basaud);
|
|---|
| 74 |
|
|---|
| 75 | FIXME("(%p)->()\n",This);
|
|---|
| 76 |
|
|---|
| 77 | return E_NOTIMPL;
|
|---|
| 78 | }
|
|---|
| 79 |
|
|---|
| 80 | static HRESULT WINAPI
|
|---|
| 81 | IBasicAudio_fnGetIDsOfNames(IBasicAudio* iface,REFIID riid, LPOLESTR* ppwszName, UINT cNames, LCID lcid, DISPID* pDispId)
|
|---|
| 82 | {
|
|---|
| 83 | CFilterGraph_THIS(iface,basaud);
|
|---|
| 84 |
|
|---|
| 85 | FIXME("(%p)->()\n",This);
|
|---|
| 86 |
|
|---|
| 87 | return E_NOTIMPL;
|
|---|
| 88 | }
|
|---|
| 89 |
|
|---|
| 90 | static HRESULT WINAPI
|
|---|
| 91 | IBasicAudio_fnInvoke(IBasicAudio* iface,DISPID DispId, REFIID riid, LCID lcid, WORD wFlags, DISPPARAMS* pDispParams, VARIANT* pVarRes, EXCEPINFO* pExcepInfo, UINT* puArgErr)
|
|---|
| 92 | {
|
|---|
| 93 | CFilterGraph_THIS(iface,basaud);
|
|---|
| 94 |
|
|---|
| 95 | FIXME("(%p)->()\n",This);
|
|---|
| 96 |
|
|---|
| 97 | return E_NOTIMPL;
|
|---|
| 98 | }
|
|---|
| 99 |
|
|---|
| 100 |
|
|---|
| 101 | static HRESULT WINAPI
|
|---|
| 102 | IBasicAudio_fnput_Volume(IBasicAudio* iface,long lVol)
|
|---|
| 103 | {
|
|---|
| 104 | CFilterGraph_THIS(iface,basaud);
|
|---|
| 105 |
|
|---|
| 106 | FIXME("(%p)->()\n",This);
|
|---|
| 107 |
|
|---|
| 108 | return E_NOTIMPL;
|
|---|
| 109 | }
|
|---|
| 110 |
|
|---|
| 111 | static HRESULT WINAPI
|
|---|
| 112 | IBasicAudio_fnget_Volume(IBasicAudio* iface,long* plVol)
|
|---|
| 113 | {
|
|---|
| 114 | CFilterGraph_THIS(iface,basaud);
|
|---|
| 115 |
|
|---|
| 116 | FIXME("(%p)->()\n",This);
|
|---|
| 117 |
|
|---|
| 118 | return E_NOTIMPL;
|
|---|
| 119 | }
|
|---|
| 120 |
|
|---|
| 121 | static HRESULT WINAPI
|
|---|
| 122 | IBasicAudio_fnput_Balance(IBasicAudio* iface,long lBalance)
|
|---|
| 123 | {
|
|---|
| 124 | CFilterGraph_THIS(iface,basaud);
|
|---|
| 125 |
|
|---|
| 126 | FIXME("(%p)->()\n",This);
|
|---|
| 127 |
|
|---|
| 128 | return E_NOTIMPL;
|
|---|
| 129 | }
|
|---|
| 130 |
|
|---|
| 131 | static HRESULT WINAPI
|
|---|
| 132 | IBasicAudio_fnget_Balance(IBasicAudio* iface,long* plBalance)
|
|---|
| 133 | {
|
|---|
| 134 | CFilterGraph_THIS(iface,basaud);
|
|---|
| 135 |
|
|---|
| 136 | FIXME("(%p)->()\n",This);
|
|---|
| 137 |
|
|---|
| 138 | return E_NOTIMPL;
|
|---|
| 139 | }
|
|---|
| 140 |
|
|---|
| 141 |
|
|---|
| 142 | static ICOM_VTABLE(IBasicAudio) ibasicaudio =
|
|---|
| 143 | {
|
|---|
| 144 | ICOM_MSVTABLE_COMPAT_DummyRTTIVALUE
|
|---|
| 145 | /* IUnknown fields */
|
|---|
| 146 | IBasicAudio_fnQueryInterface,
|
|---|
| 147 | IBasicAudio_fnAddRef,
|
|---|
| 148 | IBasicAudio_fnRelease,
|
|---|
| 149 | /* IDispatch fields */
|
|---|
| 150 | IBasicAudio_fnGetTypeInfoCount,
|
|---|
| 151 | IBasicAudio_fnGetTypeInfo,
|
|---|
| 152 | IBasicAudio_fnGetIDsOfNames,
|
|---|
| 153 | IBasicAudio_fnInvoke,
|
|---|
| 154 | /* IBasicAudio fields */
|
|---|
| 155 | IBasicAudio_fnput_Volume,
|
|---|
| 156 | IBasicAudio_fnget_Volume,
|
|---|
| 157 | IBasicAudio_fnput_Balance,
|
|---|
| 158 | IBasicAudio_fnget_Balance,
|
|---|
| 159 | };
|
|---|
| 160 |
|
|---|
| 161 |
|
|---|
| 162 | void CFilterGraph_InitIBasicAudio( CFilterGraph* pfg )
|
|---|
| 163 | {
|
|---|
| 164 | TRACE("(%p)\n",pfg);
|
|---|
| 165 | ICOM_VTBL(&pfg->basaud) = &ibasicaudio;
|
|---|
| 166 | }
|
|---|
| 167 |
|
|---|