Commit 50702687 authored by Robert Reif's avatar Robert Reif Committed by Alexandre Julliard

dsound: Capture refactoring.

Move initialization code from DirectSoundCapture to DirectSoundCaptureDevice. Make DirectSoundCaptureBuffer directly reference DirectSoundCaptureDevice rather than DirectSoundCapture to eliminate one level of indirection. Rename DSOUND_CreateDirectSoundCaptureBuffer to IDirectSoundCaptureBufferImpl_Create to be consistent.
parent 1e964550
......@@ -323,6 +323,10 @@ struct DirectSoundCaptureDevice
HRESULT DirectSoundCaptureDevice_Create(
DirectSoundCaptureDevice ** ppDevice);
HRESULT DirectSoundCaptureDevice_Initialize(
DirectSoundCaptureDevice ** ppDevice,
LPCGUID lpcGUID);
ULONG DirectSoundCaptureDevice_AddRef(
DirectSoundCaptureDevice * device);
......@@ -339,7 +343,7 @@ struct IDirectSoundCaptureBufferImpl
LONG ref;
/* IDirectSoundCaptureBufferImpl fields */
IDirectSoundCaptureImpl* dsound;
DirectSoundCaptureDevice* device;
/* FIXME: don't need this */
LPDSCBUFFERDESC pdscbd;
DWORD flags;
......@@ -351,10 +355,10 @@ struct IDirectSoundCaptureBufferImpl
PIDSDRIVERNOTIFY hwnotify;
};
HRESULT DSOUND_CreateDirectSoundCaptureBuffer(
IDirectSoundCaptureImpl *ipDSC,
LPCDSCBUFFERDESC lpcDSCBufferDesc,
LPVOID * ppobj);
HRESULT IDirectSoundCaptureBufferImpl_Create(
DirectSoundCaptureDevice *device,
IDirectSoundCaptureBufferImpl ** ppobj,
LPCDSCBUFFERDESC lpcDSCBufferDesc);
/*****************************************************************************
* IDirectSoundFullDuplex implementation structure
......
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