[ros-diffs] [janderwald] 41898: - Add function for retrieving current position

janderwald at svn.reactos.org janderwald at svn.reactos.org
Sun Jul 12 01:20:22 CEST 2009


Author: janderwald
Date: Sun Jul 12 03:20:22 2009
New Revision: 41898

URL: http://svn.reactos.org/svn/reactos?rev=41898&view=rev
Log:
- Add function for retrieving current position

Modified:
    trunk/reactos/include/reactos/libs/sound/mmebuddy.h

Modified: trunk/reactos/include/reactos/libs/sound/mmebuddy.h
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/include/reactos/libs/sound/mmebuddy.h?rev=41898&r1=41897&r2=41898&view=diff
==============================================================================
--- trunk/reactos/include/reactos/libs/sound/mmebuddy.h [iso-8859-1] (original)
+++ trunk/reactos/include/reactos/libs/sound/mmebuddy.h [iso-8859-1] Sun Jul 12 03:20:22 2009
@@ -201,6 +201,7 @@
 
 typedef MMRESULT (*MMWAVESETFORMAT_FUNC)(
     IN  struct _SOUND_DEVICE_INSTANCE* Instance,
+    IN  DWORD DeviceId,
     IN  PWAVEFORMATEX WaveFormat,
     IN  DWORD WaveFormatSize);
 
@@ -220,6 +221,10 @@
     IN  struct _SOUND_DEVICE_INSTANCE* SoundDeviceInstance,
     IN  PVOID Buffer,
     IN  DWORD Length);
+
+typedef MMRESULT(*MMGETPOS_FUNC)(
+    IN  struct _SOUND_DEVICE_INSTANCE* SoundDeviceInstance,
+    IN  MMTIME* Time);
 
 typedef struct _MMFUNCTION_TABLE
 {
@@ -240,6 +245,8 @@
 
     WAVE_COMMIT_FUNC                CommitWaveBuffer;
 
+    MMGETPOS_FUNC                   GetPos;
+
     // Redundant
     //MMWAVEHEADER_FUNC               PrepareWaveHeader;
     //MMWAVEHEADER_FUNC               UnprepareWaveHeader;
@@ -377,6 +384,15 @@
 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 @@
 MMRESULT
 SetWaveDeviceFormat(
     IN  PSOUND_DEVICE_INSTANCE SoundDeviceInstance,
+    IN  DWORD DeviceId,
     IN  LPWAVEFORMATEX Format,
     IN  DWORD FormatSize);
 



More information about the Ros-diffs mailing list