Commit f0d35a96 authored by Alistair Leslie-Hughes's avatar Alistair Leslie-Hughes Committed by Alexandre Julliard

dmime: Reimplement IDirectMusicAudioPath Activate.

parent 7dd53d89
...@@ -216,20 +216,22 @@ static HRESULT WINAPI IDirectMusicAudioPathImpl_GetObjectInPath (IDirectMusicAud ...@@ -216,20 +216,22 @@ static HRESULT WINAPI IDirectMusicAudioPathImpl_GetObjectInPath (IDirectMusicAud
return E_INVALIDARG; return E_INVALIDARG;
} }
static HRESULT WINAPI IDirectMusicAudioPathImpl_Activate (IDirectMusicAudioPath *iface, BOOL fActivate) static HRESULT WINAPI IDirectMusicAudioPathImpl_Activate(IDirectMusicAudioPath *iface, BOOL activate)
{ {
struct IDirectMusicAudioPathImpl *This = impl_from_IDirectMusicAudioPath(iface); struct IDirectMusicAudioPathImpl *This = impl_from_IDirectMusicAudioPath(iface);
FIXME("(%p, %d): stub\n", This, fActivate);
if (!fActivate) { FIXME("(%p, %d): semi-stub\n", This, activate);
if (!This->fActive) return S_OK;
This->fActive = FALSE; if (!!activate == This->fActive)
} else { return S_FALSE;
if (This->fActive) return S_OK;
This->fActive = TRUE; if (!activate && This->pDSBuffer) {
if (NULL != This->pDSBuffer) { /* Path is being deactivated */
IDirectSoundBuffer_Stop(This->pDSBuffer); IDirectSoundBuffer_Stop(This->pDSBuffer);
} }
}
This->fActive = !!activate;
return S_OK; return S_OK;
} }
......
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