2 * Audio Renderer (CLSID_AudioRender)
5 * - implements IRefereneceClock.
7 * Copyright (C) Hidenori TAKESHIMA <hidenori@a2.ctktv.ne.jp>
9 * This library is free software; you can redistribute it and/or
10 * modify it under the terms of the GNU Lesser General Public
11 * License as published by the Free Software Foundation; either
12 * version 2.1 of the License, or (at your option) any later version.
14 * This library is distributed in the hope that it will be useful,
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17 * Lesser General Public License for more details.
19 * You should have received a copy of the GNU Lesser General Public
20 * License along with this library; if not, write to the Free Software
21 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
24 #ifndef WINE_DSHOW_AUDREN_H
25 #define WINE_DSHOW_AUDREN_H
31 #define WINE_QUARTZ_WAVEOUT_COUNT 4
33 typedef struct CAudioRendererImpl CAudioRendererImpl;
34 typedef struct CAudioRendererPinImpl CAudioRendererPinImpl;
37 typedef struct AudRen_IBasicAudioImpl
39 ICOM_VFIELD(IBasicAudio);
40 } AudRen_IBasicAudioImpl;
42 struct CAudioRendererImpl
45 CBaseFilterImpl basefilter;
46 AudRen_IBasicAudioImpl basaud;
47 QUARTZ_IFDelegation qiext;
49 CSeekingPassThru* pSeekPass;
50 CAudioRendererPinImpl* pPin;
52 CRITICAL_SECTION m_csReceive;
57 HANDLE m_hEventRender;
61 WAVEHDR m_hdr[WINE_QUARTZ_WAVEOUT_COUNT];
64 struct CAudioRendererPinImpl
68 CMemInputPinBaseImpl meminput;
70 CAudioRendererImpl* pRender;
73 #define CAudioRendererImpl_THIS(iface,member) CAudioRendererImpl* This = ((CAudioRendererImpl*)(((char*)iface)-offsetof(CAudioRendererImpl,member)))
74 #define CAudioRendererPinImpl_THIS(iface,member) CAudioRendererPinImpl* This = ((CAudioRendererPinImpl*)(((char*)iface)-offsetof(CAudioRendererPinImpl,member)))
77 HRESULT CAudioRendererImpl_InitIBasicAudio( CAudioRendererImpl* This );
78 void CAudioRendererImpl_UninitIBasicAudio( CAudioRendererImpl* This );
80 HRESULT QUARTZ_CreateAudioRenderer(IUnknown* punkOuter,void** ppobj);
81 HRESULT QUARTZ_CreateAudioRendererPin(
82 CAudioRendererImpl* pFilter,
83 CRITICAL_SECTION* pcsPin,
84 CRITICAL_SECTION* pcsPinReceive,
85 CAudioRendererPinImpl** ppPin);
89 #endif /* WINE_DSHOW_AUDREN_H */