[KSPROXY]
- Stub interfaces for CBasicAudio, CKsClockForwarder, CVPConfig, CVPVBIConfig, CKsDataTypeHandler, CKsInterfaceHandler, CKsProxy, CKsQualityForwarder
- Implement KsSynchronousDeviceControl, KsOpenDefaultDevice, KsGetMultiplePinFactoryItems, KsGetMediaTypeCount, DllGetClassObject
svn path=/trunk/; revision=45608
2010-02-18 15:24:29 +00:00
|
|
|
/*
|
|
|
|
* COPYRIGHT: See COPYING in the top level directory
|
|
|
|
* PROJECT: ReactOS WDM Streaming ActiveMovie Proxy
|
2010-02-23 15:25:59 +00:00
|
|
|
* FILE: dll/directx/ksproxy/basicaudio.cpp
|
|
|
|
* PURPOSE: IBasicAudio interface
|
[KSPROXY]
- Stub interfaces for CBasicAudio, CKsClockForwarder, CVPConfig, CVPVBIConfig, CKsDataTypeHandler, CKsInterfaceHandler, CKsProxy, CKsQualityForwarder
- Implement KsSynchronousDeviceControl, KsOpenDefaultDevice, KsGetMultiplePinFactoryItems, KsGetMediaTypeCount, DllGetClassObject
svn path=/trunk/; revision=45608
2010-02-18 15:24:29 +00:00
|
|
|
*
|
2013-09-15 13:06:05 +00:00
|
|
|
* PROGRAMMERS: Johannes Anderwald (johannes.anderwald@reactos.org)
|
[KSPROXY]
- Stub interfaces for CBasicAudio, CKsClockForwarder, CVPConfig, CVPVBIConfig, CKsDataTypeHandler, CKsInterfaceHandler, CKsProxy, CKsQualityForwarder
- Implement KsSynchronousDeviceControl, KsOpenDefaultDevice, KsGetMultiplePinFactoryItems, KsGetMediaTypeCount, DllGetClassObject
svn path=/trunk/; revision=45608
2010-02-18 15:24:29 +00:00
|
|
|
*/
|
|
|
|
#include "precomp.h"
|
|
|
|
|
|
|
|
class CKsBasicAudio : public IBasicAudio,
|
|
|
|
public IDistributorNotify
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
STDMETHODIMP QueryInterface( REFIID InterfaceId, PVOID* Interface);
|
|
|
|
|
|
|
|
STDMETHODIMP_(ULONG) AddRef()
|
|
|
|
{
|
|
|
|
InterlockedIncrement(&m_Ref);
|
|
|
|
return m_Ref;
|
|
|
|
}
|
|
|
|
STDMETHODIMP_(ULONG) Release()
|
|
|
|
{
|
|
|
|
InterlockedDecrement(&m_Ref);
|
|
|
|
|
|
|
|
if (!m_Ref)
|
|
|
|
{
|
|
|
|
delete this;
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
return m_Ref;
|
|
|
|
}
|
|
|
|
|
|
|
|
// IDistributorNotify methods
|
|
|
|
HRESULT STDMETHODCALLTYPE Stop();
|
|
|
|
HRESULT STDMETHODCALLTYPE Pause();
|
|
|
|
HRESULT STDMETHODCALLTYPE Run(REFERENCE_TIME tStart);
|
|
|
|
HRESULT STDMETHODCALLTYPE SetSyncSource(IReferenceClock *pClock);
|
|
|
|
HRESULT STDMETHODCALLTYPE NotifyGraphChange();
|
|
|
|
|
|
|
|
// IDispatch methods
|
|
|
|
HRESULT STDMETHODCALLTYPE GetTypeInfoCount(UINT *pctinfo);
|
|
|
|
HRESULT STDMETHODCALLTYPE GetTypeInfo(UINT iTInfo, LCID lcid, ITypeInfo **ppTInfo);
|
|
|
|
HRESULT STDMETHODCALLTYPE GetIDsOfNames(REFIID riid, LPOLESTR *rgszNames, UINT cNames, LCID lcid, DISPID *rgDispId);
|
|
|
|
HRESULT STDMETHODCALLTYPE Invoke(DISPID dispIdMember, REFIID riid, LCID lcid, WORD wFlags, DISPPARAMS *pDispParams, VARIANT *pVarResult, EXCEPINFO *pExcepInfo, UINT *puArgErr);
|
|
|
|
|
|
|
|
|
|
|
|
// IBasicAudio methods
|
|
|
|
HRESULT STDMETHODCALLTYPE put_Volume(long lVolume);
|
|
|
|
HRESULT STDMETHODCALLTYPE get_Volume(long *plVolume);
|
|
|
|
HRESULT STDMETHODCALLTYPE put_Balance(long lBalance);
|
|
|
|
HRESULT STDMETHODCALLTYPE get_Balance(long *plBalance);
|
|
|
|
|
|
|
|
|
|
|
|
CKsBasicAudio() : m_Ref(0){}
|
|
|
|
virtual ~CKsBasicAudio(){}
|
|
|
|
|
|
|
|
protected:
|
|
|
|
LONG m_Ref;
|
|
|
|
};
|
|
|
|
|
|
|
|
HRESULT
|
|
|
|
STDMETHODCALLTYPE
|
|
|
|
CKsBasicAudio::QueryInterface(
|
|
|
|
IN REFIID refiid,
|
|
|
|
OUT PVOID* Output)
|
|
|
|
{
|
|
|
|
if (IsEqualGUID(refiid, IID_IUnknown))
|
|
|
|
{
|
|
|
|
*Output = PVOID(this);
|
|
|
|
reinterpret_cast<IUnknown*>(*Output)->AddRef();
|
|
|
|
return NOERROR;
|
|
|
|
}
|
|
|
|
if (IsEqualGUID(refiid, IID_IDistributorNotify))
|
|
|
|
{
|
|
|
|
*Output = (IDistributorNotify*)(this);
|
|
|
|
reinterpret_cast<IDistributorNotify*>(*Output)->AddRef();
|
|
|
|
return NOERROR;
|
|
|
|
}
|
|
|
|
|
|
|
|
if (IsEqualGUID(refiid, IID_IBasicAudio))
|
|
|
|
{
|
|
|
|
*Output = (IBasicAudio*)(this);
|
|
|
|
reinterpret_cast<IBasicAudio*>(*Output)->AddRef();
|
|
|
|
return NOERROR;
|
|
|
|
}
|
|
|
|
|
|
|
|
return E_NOINTERFACE;
|
|
|
|
}
|
|
|
|
|
|
|
|
//-------------------------------------------------------------------
|
|
|
|
// IDistributorNotify interface
|
|
|
|
//
|
|
|
|
|
|
|
|
|
|
|
|
HRESULT
|
|
|
|
STDMETHODCALLTYPE
|
|
|
|
CKsBasicAudio::Stop()
|
|
|
|
{
|
2010-03-24 17:30:43 +00:00
|
|
|
#ifdef KSPROXY_TRACE
|
2010-03-02 16:27:50 +00:00
|
|
|
OutputDebugStringW(L"UNIMPLEMENTED\n");
|
2010-03-24 17:30:43 +00:00
|
|
|
#endif
|
[KSPROXY]
- Stub interfaces for CBasicAudio, CKsClockForwarder, CVPConfig, CVPVBIConfig, CKsDataTypeHandler, CKsInterfaceHandler, CKsProxy, CKsQualityForwarder
- Implement KsSynchronousDeviceControl, KsOpenDefaultDevice, KsGetMultiplePinFactoryItems, KsGetMediaTypeCount, DllGetClassObject
svn path=/trunk/; revision=45608
2010-02-18 15:24:29 +00:00
|
|
|
return E_NOTIMPL;
|
|
|
|
}
|
|
|
|
|
|
|
|
HRESULT
|
|
|
|
STDMETHODCALLTYPE
|
|
|
|
CKsBasicAudio::Pause()
|
|
|
|
{
|
2010-03-24 17:30:43 +00:00
|
|
|
#ifdef KSPROXY_TRACE
|
2010-03-02 16:27:50 +00:00
|
|
|
OutputDebugStringW(L"UNIMPLEMENTED\n");
|
2010-03-24 17:30:43 +00:00
|
|
|
#endif
|
|
|
|
|
[KSPROXY]
- Stub interfaces for CBasicAudio, CKsClockForwarder, CVPConfig, CVPVBIConfig, CKsDataTypeHandler, CKsInterfaceHandler, CKsProxy, CKsQualityForwarder
- Implement KsSynchronousDeviceControl, KsOpenDefaultDevice, KsGetMultiplePinFactoryItems, KsGetMediaTypeCount, DllGetClassObject
svn path=/trunk/; revision=45608
2010-02-18 15:24:29 +00:00
|
|
|
return E_NOTIMPL;
|
|
|
|
}
|
|
|
|
|
|
|
|
HRESULT
|
|
|
|
STDMETHODCALLTYPE
|
|
|
|
CKsBasicAudio::Run(
|
|
|
|
REFERENCE_TIME tStart)
|
|
|
|
{
|
2010-03-24 17:30:43 +00:00
|
|
|
#ifdef KSPROXY_TRACE
|
2010-03-02 16:27:50 +00:00
|
|
|
OutputDebugStringW(L"UNIMPLEMENTED\n");
|
2010-03-24 17:30:43 +00:00
|
|
|
#endif
|
|
|
|
|
[KSPROXY]
- Stub interfaces for CBasicAudio, CKsClockForwarder, CVPConfig, CVPVBIConfig, CKsDataTypeHandler, CKsInterfaceHandler, CKsProxy, CKsQualityForwarder
- Implement KsSynchronousDeviceControl, KsOpenDefaultDevice, KsGetMultiplePinFactoryItems, KsGetMediaTypeCount, DllGetClassObject
svn path=/trunk/; revision=45608
2010-02-18 15:24:29 +00:00
|
|
|
return E_NOTIMPL;
|
|
|
|
}
|
|
|
|
|
|
|
|
HRESULT
|
|
|
|
STDMETHODCALLTYPE
|
|
|
|
CKsBasicAudio::SetSyncSource(
|
|
|
|
IReferenceClock *pClock)
|
|
|
|
{
|
2010-03-24 17:30:43 +00:00
|
|
|
#ifdef KSPROXY_TRACE
|
2010-03-02 16:27:50 +00:00
|
|
|
OutputDebugStringW(L"UNIMPLEMENTED\n");
|
2010-03-24 17:30:43 +00:00
|
|
|
#endif
|
[KSPROXY]
- Stub interfaces for CBasicAudio, CKsClockForwarder, CVPConfig, CVPVBIConfig, CKsDataTypeHandler, CKsInterfaceHandler, CKsProxy, CKsQualityForwarder
- Implement KsSynchronousDeviceControl, KsOpenDefaultDevice, KsGetMultiplePinFactoryItems, KsGetMediaTypeCount, DllGetClassObject
svn path=/trunk/; revision=45608
2010-02-18 15:24:29 +00:00
|
|
|
return E_NOTIMPL;
|
|
|
|
}
|
|
|
|
|
|
|
|
HRESULT
|
|
|
|
STDMETHODCALLTYPE
|
|
|
|
CKsBasicAudio::NotifyGraphChange()
|
|
|
|
{
|
2010-03-24 17:30:43 +00:00
|
|
|
#ifdef KSPROXY_TRACE
|
2010-03-02 16:27:50 +00:00
|
|
|
OutputDebugStringW(L"UNIMPLEMENTED\n");
|
2010-03-24 17:30:43 +00:00
|
|
|
#endif
|
|
|
|
|
[KSPROXY]
- Stub interfaces for CBasicAudio, CKsClockForwarder, CVPConfig, CVPVBIConfig, CKsDataTypeHandler, CKsInterfaceHandler, CKsProxy, CKsQualityForwarder
- Implement KsSynchronousDeviceControl, KsOpenDefaultDevice, KsGetMultiplePinFactoryItems, KsGetMediaTypeCount, DllGetClassObject
svn path=/trunk/; revision=45608
2010-02-18 15:24:29 +00:00
|
|
|
return E_NOTIMPL;
|
|
|
|
}
|
|
|
|
|
|
|
|
//-------------------------------------------------------------------
|
|
|
|
// IDispatch interface
|
|
|
|
//
|
|
|
|
|
|
|
|
HRESULT
|
|
|
|
STDMETHODCALLTYPE
|
|
|
|
CKsBasicAudio::GetTypeInfoCount(
|
|
|
|
UINT *pctinfo)
|
|
|
|
{
|
2010-03-24 17:30:43 +00:00
|
|
|
#ifdef KSPROXY_TRACE
|
2010-03-02 16:27:50 +00:00
|
|
|
OutputDebugStringW(L"UNIMPLEMENTED\n");
|
2010-03-24 17:30:43 +00:00
|
|
|
#endif
|
|
|
|
|
[KSPROXY]
- Stub interfaces for CBasicAudio, CKsClockForwarder, CVPConfig, CVPVBIConfig, CKsDataTypeHandler, CKsInterfaceHandler, CKsProxy, CKsQualityForwarder
- Implement KsSynchronousDeviceControl, KsOpenDefaultDevice, KsGetMultiplePinFactoryItems, KsGetMediaTypeCount, DllGetClassObject
svn path=/trunk/; revision=45608
2010-02-18 15:24:29 +00:00
|
|
|
return E_NOTIMPL;
|
|
|
|
}
|
|
|
|
|
|
|
|
HRESULT
|
|
|
|
STDMETHODCALLTYPE
|
|
|
|
CKsBasicAudio::GetTypeInfo(
|
|
|
|
UINT iTInfo,
|
|
|
|
LCID lcid,
|
|
|
|
ITypeInfo **ppTInfo)
|
|
|
|
{
|
2010-03-24 17:30:43 +00:00
|
|
|
#ifdef KSPROXY_TRACE
|
2010-03-02 16:27:50 +00:00
|
|
|
OutputDebugStringW(L"UNIMPLEMENTED\n");
|
2010-03-24 17:30:43 +00:00
|
|
|
#endif
|
[KSPROXY]
- Stub interfaces for CBasicAudio, CKsClockForwarder, CVPConfig, CVPVBIConfig, CKsDataTypeHandler, CKsInterfaceHandler, CKsProxy, CKsQualityForwarder
- Implement KsSynchronousDeviceControl, KsOpenDefaultDevice, KsGetMultiplePinFactoryItems, KsGetMediaTypeCount, DllGetClassObject
svn path=/trunk/; revision=45608
2010-02-18 15:24:29 +00:00
|
|
|
return E_NOTIMPL;
|
|
|
|
}
|
|
|
|
|
|
|
|
HRESULT
|
|
|
|
STDMETHODCALLTYPE
|
|
|
|
CKsBasicAudio::GetIDsOfNames(
|
|
|
|
REFIID riid,
|
|
|
|
LPOLESTR *rgszNames,
|
|
|
|
UINT cNames,
|
|
|
|
LCID lcid,
|
|
|
|
DISPID *rgDispId)
|
|
|
|
{
|
2010-03-24 17:30:43 +00:00
|
|
|
#ifdef KSPROXY_TRACE
|
2010-03-02 16:27:50 +00:00
|
|
|
OutputDebugStringW(L"UNIMPLEMENTED\n");
|
2010-03-24 17:30:43 +00:00
|
|
|
#endif
|
|
|
|
|
[KSPROXY]
- Stub interfaces for CBasicAudio, CKsClockForwarder, CVPConfig, CVPVBIConfig, CKsDataTypeHandler, CKsInterfaceHandler, CKsProxy, CKsQualityForwarder
- Implement KsSynchronousDeviceControl, KsOpenDefaultDevice, KsGetMultiplePinFactoryItems, KsGetMediaTypeCount, DllGetClassObject
svn path=/trunk/; revision=45608
2010-02-18 15:24:29 +00:00
|
|
|
return E_NOTIMPL;
|
|
|
|
}
|
|
|
|
|
|
|
|
HRESULT
|
|
|
|
STDMETHODCALLTYPE
|
|
|
|
CKsBasicAudio::Invoke(
|
|
|
|
DISPID dispIdMember,
|
|
|
|
REFIID riid,
|
|
|
|
LCID lcid,
|
|
|
|
WORD wFlags,
|
|
|
|
DISPPARAMS *pDispParams,
|
|
|
|
VARIANT *pVarResult,
|
|
|
|
EXCEPINFO *pExcepInfo,
|
|
|
|
UINT *puArgErr)
|
|
|
|
{
|
2010-03-24 17:30:43 +00:00
|
|
|
#ifdef KSPROXY_TRACE
|
2010-03-02 16:27:50 +00:00
|
|
|
OutputDebugStringW(L"UNIMPLEMENTED\n");
|
2010-03-24 17:30:43 +00:00
|
|
|
#endif
|
|
|
|
|
[KSPROXY]
- Stub interfaces for CBasicAudio, CKsClockForwarder, CVPConfig, CVPVBIConfig, CKsDataTypeHandler, CKsInterfaceHandler, CKsProxy, CKsQualityForwarder
- Implement KsSynchronousDeviceControl, KsOpenDefaultDevice, KsGetMultiplePinFactoryItems, KsGetMediaTypeCount, DllGetClassObject
svn path=/trunk/; revision=45608
2010-02-18 15:24:29 +00:00
|
|
|
return E_NOTIMPL;
|
|
|
|
}
|
|
|
|
|
|
|
|
//-------------------------------------------------------------------
|
|
|
|
// IBasicAudio interface
|
|
|
|
//
|
|
|
|
|
|
|
|
HRESULT
|
|
|
|
STDMETHODCALLTYPE
|
|
|
|
CKsBasicAudio::put_Volume(
|
|
|
|
long lVolume)
|
|
|
|
{
|
2010-03-24 17:30:43 +00:00
|
|
|
#ifdef KSPROXY_TRACE
|
2010-03-02 16:27:50 +00:00
|
|
|
OutputDebugStringW(L"UNIMPLEMENTED\n");
|
2010-03-24 17:30:43 +00:00
|
|
|
#endif
|
|
|
|
|
[KSPROXY]
- Stub interfaces for CBasicAudio, CKsClockForwarder, CVPConfig, CVPVBIConfig, CKsDataTypeHandler, CKsInterfaceHandler, CKsProxy, CKsQualityForwarder
- Implement KsSynchronousDeviceControl, KsOpenDefaultDevice, KsGetMultiplePinFactoryItems, KsGetMediaTypeCount, DllGetClassObject
svn path=/trunk/; revision=45608
2010-02-18 15:24:29 +00:00
|
|
|
return E_NOTIMPL;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
HRESULT
|
|
|
|
STDMETHODCALLTYPE
|
|
|
|
CKsBasicAudio::get_Volume(
|
|
|
|
long *plVolume)
|
|
|
|
{
|
2010-03-24 17:30:43 +00:00
|
|
|
#ifdef KSPROXY_TRACE
|
2010-03-02 16:27:50 +00:00
|
|
|
OutputDebugStringW(L"UNIMPLEMENTED\n");
|
2010-03-24 17:30:43 +00:00
|
|
|
#endif
|
|
|
|
|
[KSPROXY]
- Stub interfaces for CBasicAudio, CKsClockForwarder, CVPConfig, CVPVBIConfig, CKsDataTypeHandler, CKsInterfaceHandler, CKsProxy, CKsQualityForwarder
- Implement KsSynchronousDeviceControl, KsOpenDefaultDevice, KsGetMultiplePinFactoryItems, KsGetMediaTypeCount, DllGetClassObject
svn path=/trunk/; revision=45608
2010-02-18 15:24:29 +00:00
|
|
|
return E_NOTIMPL;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
HRESULT
|
|
|
|
STDMETHODCALLTYPE
|
|
|
|
CKsBasicAudio::put_Balance(
|
|
|
|
long lBalance)
|
|
|
|
{
|
2010-03-24 17:30:43 +00:00
|
|
|
#ifdef KSPROXY_TRACE
|
2010-03-02 16:27:50 +00:00
|
|
|
OutputDebugStringW(L"UNIMPLEMENTED\n");
|
2010-03-24 17:30:43 +00:00
|
|
|
#endif
|
|
|
|
|
[KSPROXY]
- Stub interfaces for CBasicAudio, CKsClockForwarder, CVPConfig, CVPVBIConfig, CKsDataTypeHandler, CKsInterfaceHandler, CKsProxy, CKsQualityForwarder
- Implement KsSynchronousDeviceControl, KsOpenDefaultDevice, KsGetMultiplePinFactoryItems, KsGetMediaTypeCount, DllGetClassObject
svn path=/trunk/; revision=45608
2010-02-18 15:24:29 +00:00
|
|
|
return E_NOTIMPL;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
HRESULT
|
|
|
|
STDMETHODCALLTYPE
|
|
|
|
CKsBasicAudio::get_Balance(
|
|
|
|
long *plBalance)
|
|
|
|
{
|
2010-03-24 17:30:43 +00:00
|
|
|
#ifdef KSPROXY_TRACE
|
2010-03-02 16:27:50 +00:00
|
|
|
OutputDebugStringW(L"UNIMPLEMENTED\n");
|
2010-03-24 17:30:43 +00:00
|
|
|
#endif
|
|
|
|
|
[KSPROXY]
- Stub interfaces for CBasicAudio, CKsClockForwarder, CVPConfig, CVPVBIConfig, CKsDataTypeHandler, CKsInterfaceHandler, CKsProxy, CKsQualityForwarder
- Implement KsSynchronousDeviceControl, KsOpenDefaultDevice, KsGetMultiplePinFactoryItems, KsGetMediaTypeCount, DllGetClassObject
svn path=/trunk/; revision=45608
2010-02-18 15:24:29 +00:00
|
|
|
return E_NOTIMPL;
|
|
|
|
}
|
|
|
|
|
|
|
|
HRESULT
|
|
|
|
WINAPI
|
|
|
|
CKsBasicAudio_Constructor(
|
|
|
|
IUnknown * pUnkOuter,
|
|
|
|
REFIID riid,
|
|
|
|
LPVOID * ppv)
|
|
|
|
{
|
2010-03-24 17:30:43 +00:00
|
|
|
#ifdef KSPROXY_TRACE
|
2010-03-02 16:27:50 +00:00
|
|
|
OutputDebugStringW(L"CKsBasicAudio_Constructor\n");
|
2010-03-24 17:30:43 +00:00
|
|
|
#endif
|
2010-03-02 16:27:50 +00:00
|
|
|
|
[KSPROXY]
- Stub interfaces for CBasicAudio, CKsClockForwarder, CVPConfig, CVPVBIConfig, CKsDataTypeHandler, CKsInterfaceHandler, CKsProxy, CKsQualityForwarder
- Implement KsSynchronousDeviceControl, KsOpenDefaultDevice, KsGetMultiplePinFactoryItems, KsGetMediaTypeCount, DllGetClassObject
svn path=/trunk/; revision=45608
2010-02-18 15:24:29 +00:00
|
|
|
CKsBasicAudio * handler = new CKsBasicAudio();
|
|
|
|
|
|
|
|
if (!handler)
|
|
|
|
return E_OUTOFMEMORY;
|
|
|
|
|
|
|
|
if (FAILED(handler->QueryInterface(riid, ppv)))
|
|
|
|
{
|
|
|
|
/* not supported */
|
|
|
|
delete handler;
|
|
|
|
return E_NOINTERFACE;
|
|
|
|
}
|
|
|
|
|
|
|
|
return NOERROR;
|
|
|
|
}
|