/usr/x86_64-w64-mingw32/include/msptrmac.h is in mingw-w64-x86-64-dev 2.0.3-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 | /**
* This file has no copyright assigned and is placed in the Public Domain.
* This file is part of the w64 mingw-runtime package.
* No warranty is given; refer to the file DISCLAIMER.PD within this package.
*/
#ifndef _MSPTRMAC_H_
#define _MSPTRMAC_H_
#define WAVEIN_NAME L"WaveIn Terminal"
#ifdef __cplusplus
class CAudioCaptureTerminal : public IDispatchImpl<ITBasicAudioTerminal,&IID_ITBasicAudioTerminal,&LIBID_TAPI3Lib>,public IDispatchImpl<ITStaticAudioTerminal,&IID_ITStaticAudioTerminal,&LIBID_TAPI3Lib>,public CSingleFilterStaticTerminal,public CMSPObjectSafetyImpl
{
BEGIN_COM_MAP(CAudioCaptureTerminal)
COM_INTERFACE_ENTRY(IObjectSafety)
COM_INTERFACE_ENTRY(ITBasicAudioTerminal)
COM_INTERFACE_ENTRY(ITStaticAudioTerminal)
COM_INTERFACE_ENTRY_CHAIN(CSingleFilterStaticTerminal)
END_COM_MAP()
DECLARE_VQI()
DECLARE_LOG_ADDREF_RELEASE(CAudioCaptureTerminal)
public:
CAudioCaptureTerminal();
virtual ~CAudioCaptureTerminal();
static HRESULT CreateTerminal(CComPtr<IMoniker> pMoniker,MSP_HANDLE htAddress,ITTerminal **ppTerm);
HRESULT FindTerminalPin();
public:
STDMETHOD(get_Balance)(long *pVal);
STDMETHOD(put_Balance)(long newVal);
STDMETHOD(get_Volume) (long *pVal);
STDMETHOD(put_Volume) (long newVal);
public:
STDMETHOD(get_WaveId) (long *plWaveId);
STDMETHODIMP CompleteConnectTerminal(void);
STDMETHODIMP DisconnectTerminal(IGraphBuilder *pGraph,DWORD dwReserved);
virtual HRESULT AddFiltersToGraph();
virtual DWORD GetSupportedMediaTypes(void) { return (DWORD) TAPIMEDIATYPE_AUDIO; }
HRESULT CreateFilters();
inline HRESULT CreateFiltersIfRequired();
private:
bool m_bResourceReserved;
CComPtr<IAMAudioInputMixer> m_pIAMAudioInputMixer;
};
inline HRESULT CAudioCaptureTerminal::CreateFiltersIfRequired() {
if(!m_pIFilter) return CreateFilters();
return S_OK;
}
#endif /* __cplusplus */
#endif
|