mirror of
https://github.com/reactos/reactos.git
synced 2024-09-02 16:48:36 +00:00
- Add function for retrieving current position
svn path=/trunk/; revision=41898
This commit is contained in:
parent
a522461492
commit
dec6dd70e3
|
@ -201,6 +201,7 @@ typedef MMRESULT (*MMWAVEQUERYFORMATSUPPORT_FUNC)(
|
|||
|
||||
typedef MMRESULT (*MMWAVESETFORMAT_FUNC)(
|
||||
IN struct _SOUND_DEVICE_INSTANCE* Instance,
|
||||
IN DWORD DeviceId,
|
||||
IN PWAVEFORMATEX WaveFormat,
|
||||
IN DWORD WaveFormatSize);
|
||||
|
||||
|
@ -221,6 +222,10 @@ typedef MMRESULT (*MMBUFFER_FUNC)(
|
|||
IN PVOID Buffer,
|
||||
IN DWORD Length);
|
||||
|
||||
typedef MMRESULT(*MMGETPOS_FUNC)(
|
||||
IN struct _SOUND_DEVICE_INSTANCE* SoundDeviceInstance,
|
||||
IN MMTIME* Time);
|
||||
|
||||
typedef struct _MMFUNCTION_TABLE
|
||||
{
|
||||
union
|
||||
|
@ -240,6 +245,8 @@ typedef struct _MMFUNCTION_TABLE
|
|||
|
||||
WAVE_COMMIT_FUNC CommitWaveBuffer;
|
||||
|
||||
MMGETPOS_FUNC GetPos;
|
||||
|
||||
// Redundant
|
||||
//MMWAVEHEADER_FUNC PrepareWaveHeader;
|
||||
//MMWAVEHEADER_FUNC UnprepareWaveHeader;
|
||||
|
@ -377,6 +384,15 @@ MMRESULT
|
|||
MmeCloseDevice(
|
||||
IN DWORD PrivateHandle);
|
||||
|
||||
MMRESULT
|
||||
MmeGetPosition(
|
||||
IN MMDEVICE_TYPE DeviceType,
|
||||
IN DWORD DeviceId,
|
||||
IN DWORD PrivateHandle,
|
||||
IN MMTIME* Time,
|
||||
IN DWORD Size);
|
||||
|
||||
|
||||
#define MmePrepareWaveHeader(private_handle, header) \
|
||||
PrepareWaveHeader((PSOUND_DEVICE_INSTANCE)private_handle, (PWAVEHDR)header)
|
||||
|
||||
|
@ -564,6 +580,7 @@ QueryWaveDeviceFormatSupport(
|
|||
MMRESULT
|
||||
SetWaveDeviceFormat(
|
||||
IN PSOUND_DEVICE_INSTANCE SoundDeviceInstance,
|
||||
IN DWORD DeviceId,
|
||||
IN LPWAVEFORMATEX Format,
|
||||
IN DWORD FormatSize);
|
||||
|
||||
|
|
Loading…
Reference in a new issue