Zebediah Figura : quartz/dsoundrender: Remove the no longer used "play_time" field.

Alexandre Julliard julliard at winehq.org
Thu May 13 15:30:59 CDT 2021


Module: wine
Branch: master
Commit: 67330f90556d3057409a4582e95d5ca8ee81310c
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=67330f90556d3057409a4582e95d5ca8ee81310c

Author: Zebediah Figura <z.figura12 at gmail.com>
Date:   Wed May 12 19:00:32 2021 -0500

quartz/dsoundrender: Remove the no longer used "play_time" field.

This was used to implement IReferenceClock::GetTime(), which was reimplemented
in 63a6b308e9.

Signed-off-by: Zebediah Figura <z.figura12 at gmail.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/quartz/dsoundrender.c | 7 ++-----
 1 file changed, 2 insertions(+), 5 deletions(-)

diff --git a/dlls/quartz/dsoundrender.c b/dlls/quartz/dsoundrender.c
index f7f0255d4ab..656a5e1f7ab 100644
--- a/dlls/quartz/dsoundrender.c
+++ b/dlls/quartz/dsoundrender.c
@@ -64,8 +64,6 @@ struct dsound_render
     DWORD buf_size;
     DWORD last_playpos, writepos;
 
-    REFERENCE_TIME play_time;
-
     LONG volume;
     LONG pan;
 };
@@ -122,10 +120,9 @@ static void DSoundRender_UpdatePositions(struct dsound_render *This, DWORD *seqw
         old_writepos += This->buf_size;
 
     IDirectSoundBuffer_GetCurrentPosition(This->dsbuffer, &playpos, &writepos);
-    if (old_playpos > playpos) {
+    if (old_playpos > playpos)
         adv = This->buf_size + playpos - old_playpos;
-        This->play_time += time_from_pos(This, This->buf_size);
-    } else
+    else
         adv = playpos - old_playpos;
     This->last_playpos = playpos;
     if (adv) {




More information about the wine-cvs mailing list