Commit ca5a068a authored by Zebediah Figura's avatar Zebediah Figura Committed by Alexandre Julliard

quartz/dsoundrender: Use BaseRendererImpl_Pause().

parent 221a0cdb
...@@ -682,34 +682,6 @@ HRESULT DSoundRender_create(IUnknown *outer, void **out) ...@@ -682,34 +682,6 @@ HRESULT DSoundRender_create(IUnknown *outer, void **out)
return hr; return hr;
} }
static HRESULT WINAPI DSoundRender_Pause(IBaseFilter * iface)
{
DSoundRenderImpl *This = impl_from_IBaseFilter(iface);
HRESULT hr = S_OK;
TRACE("(%p/%p)->()\n", This, iface);
EnterCriticalSection(&This->renderer.csRenderLock);
if (This->renderer.filter.state != State_Paused)
{
if (This->renderer.filter.state == State_Stopped)
{
if (This->renderer.sink.pin.pConnectedTo)
ResetEvent(This->renderer.state_event);
This->renderer.sink.end_of_stream = 0;
}
hr = IDirectSoundBuffer_Stop(This->dsbuffer);
if (SUCCEEDED(hr))
This->renderer.filter.state = State_Paused;
ResetEvent(This->renderer.flush_event);
}
LeaveCriticalSection(&This->renderer.csRenderLock);
return hr;
}
static const IBaseFilterVtbl DSoundRender_Vtbl = static const IBaseFilterVtbl DSoundRender_Vtbl =
{ {
BaseFilterImpl_QueryInterface, BaseFilterImpl_QueryInterface,
...@@ -717,7 +689,7 @@ static const IBaseFilterVtbl DSoundRender_Vtbl = ...@@ -717,7 +689,7 @@ static const IBaseFilterVtbl DSoundRender_Vtbl =
BaseFilterImpl_Release, BaseFilterImpl_Release,
BaseFilterImpl_GetClassID, BaseFilterImpl_GetClassID,
BaseRendererImpl_Stop, BaseRendererImpl_Stop,
DSoundRender_Pause, BaseRendererImpl_Pause,
BaseRendererImpl_Run, BaseRendererImpl_Run,
BaseRendererImpl_GetState, BaseRendererImpl_GetState,
BaseRendererImpl_SetSyncSource, BaseRendererImpl_SetSyncSource,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment