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