Module: wine
Branch: master
Commit: 63a6b308e91232dd55dd107595a6181c70180dd4
URL: https://source.winehq.org/git/wine.git/?a=commit;h=63a6b308e91232dd55dd1075…
Author: Zebediah Figura <z.figura12(a)gmail.com>
Date: Thu Nov 28 17:35:40 2019 -0600
quartz/dsoundrender: Delegate IReferenceClock to the system clock.
For several reasons.
Firstly, the reference clock should still function when the filter is not
running.
Secondly, IDirectSoundBuffer::GetPositions() in practice returns very coarse
positions, both on Windows and on Wine. On my hardware, the resolution is
about 10ms, which, while suitable for the DirectSound renderer and probably
also any video renderers, is nevertheless actually coarser than
GetTickCount().
Thirdly, testing supports that the native DirectSound renderer returns a
timestamp from IReferenceClock::GetTime() that is more accurate than
IDirectSoundBuffer::GetPositions(). In fact, after dumping a large number of
different clock sources, I came to the conclusion that it is probably using
timeGetTime() as a source. On Wine that's identical to GetTickCount(), so we
may as well just delegate directly to the system clock.
Signed-off-by: Zebediah Figura <z.figura12(a)gmail.com>
Signed-off-by: Alexandre Julliard <julliard(a)winehq.org>
---
dlls/quartz/dsoundrender.c | 301 +++------------------------------------------
1 file changed, 14 insertions(+), 287 deletions(-)
Diff: https://source.winehq.org/git/wine.git/?a=commitdiff;h=63a6b308e91232dd55dd…
Module: wine
Branch: master
Commit: 431a21d95e573eaf8cafdd041b7100b576143756
URL: https://source.winehq.org/git/wine.git/?a=commit;h=431a21d95e573eaf8cafdd04…
Author: Francois Gouget <fgouget(a)free.fr>
Date: Thu Nov 28 13:40:53 2019 +0100
dxerr8: Fix the spelling of some error messages.
Signed-off-by: Francois Gouget <fgouget(a)free.fr>
Signed-off-by: Alexandre Julliard <julliard(a)winehq.org>
---
dlls/dxerr8/errors.dat | 4 ++--
dlls/dxerr8/errors.h | 8 ++++----
2 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/dlls/dxerr8/errors.dat b/dlls/dxerr8/errors.dat
index dd73561282..4ab288ccd4 100644
--- a/dlls/dxerr8/errors.dat
+++ b/dlls/dxerr8/errors.dat
@@ -202,7 +202,7 @@ DDERR_INVALIDPIXELFORMAT pixel format was invalid as specified
DDERR_INVALIDRECT Rectangle provided was invalid.
DDERR_LOCKEDSURFACES Operation could not be carried out because one or more surfaces are locked
DDERR_NO3D There is no 3D present.
-DDERR_NOALPHAHW Operation could not be carried out because there is no alpha accleration hardware present or available.
+DDERR_NOALPHAHW Operation could not be carried out because there is no alpha acceleration hardware present or available.
DDERR_NOSTEREOHARDWARE Operation could not be carried out because there is no stereo hardware present or available.
DDERR_NOSURFACELEFT Operation could not be carried out because there is no hardware present which supports stereo surfaces
DDERR_NOCLIPLIST no clip list available
@@ -268,7 +268,7 @@ DDERR_NOBLTHW No blter.
DDERR_NODDROPSHW No DirectDraw ROP hardware.
DDERR_OVERLAYNOTVISIBLE returned when GetOverlayPosition is called on a hidden overlay
DDERR_NOOVERLAYDEST returned when GetOverlayPosition is called on an overlay that UpdateOverlay has never been called on to establish a destination.
-DDERR_INVALIDPOSITION returned when the position of the overlay on the destination is no longer legal for that destionation.
+DDERR_INVALIDPOSITION returned when the position of the overlay on the destination is no longer legal for that destination.
DDERR_NOTAOVERLAYSURFACE returned when an overlay member is called for a non-overlay surface
DDERR_EXCLUSIVEMODEALREADYSET An attempt was made to set the cooperative level when it was already set to exclusive.
DDERR_NOTFLIPPABLE An attempt has been made to flip a surface that is not flippable.
diff --git a/dlls/dxerr8/errors.h b/dlls/dxerr8/errors.h
index c46fda8b46..4f2711315f 100644
--- a/dlls/dxerr8/errors.h
+++ b/dlls/dxerr8/errors.h
@@ -613,8 +613,8 @@ static const WCHAR name204W[] = { 'D','D','E','R','R','_','N','O','3','D',0 };
static const CHAR description204A[] = "There is no 3D present.";
static const WCHAR description204W[] = { 'T','h','e','r','e',' ','i','s',' ','n','o',' ','3','D',' ','p','r','e','s','e','n','t','.',0 };
static const WCHAR name205W[] = { 'D','D','E','R','R','_','N','O','A','L','P','H','A','H','W',0 };
-static const CHAR description205A[] = "Operation could not be carried out because there is no alpha accleration hardware present or available.";
-static const WCHAR description205W[] = { 'O','p','e','r','a','t','i','o','n',' ','c','o','u','l','d',' ','n','o','t',' ','b','e',' ','c','a','r','r','i','e','d',' ','o','u','t',' ','b','e','c','a','u','s','e',' ','t','h','e','r','e',' ','i','s',' ','n','o',' ','a','l','p','h','a',' ','a','c','c','l','e','r','a','t','i','o','n',' ','h','a','r','d','w','a','r','e',' ','p','r','e','s','e','n','t',' ','o','r',' ','a','v','a','i','l','a','b','l','e','.',0 };
+static const CHAR description205A[] = "Operation could not be carried out because there is no alpha acceleration hardware present or available.";
+static const WCHAR description205W[] = { 'O','p','e','r','a','t','i','o','n',' ','c','o','u','l','d',' ','n','o','t',' ','b','e',' ','c','a','r','r','i','e','d',' ','o','u','t',' ','b','e','c','a','u','s','e',' ','t','h','e','r','e',' ','i','s',' ','n','o',' ','a','l','p','h','a',' ','a','c','c','e','l','e','r','a','t','i','o','n',' ','h','a','r','d','w','a','r','e',' ','p','r','e','s','e','n','t',' ','o','r',' ','a','v','a','i','l','a','b','l','e','.',0 };
static const WCHAR name206W[] = { 'D','D','E','R','R','_','N','O','S','T','E','R','E','O','H','A','R','D','W','A','R','E',0 };
static const CHAR description206A[] = "Operation could not be carried out because there is no stereo hardware present or available.";
static const WCHAR description206W[] = { 'O','p','e','r','a','t','i','o','n',' ','c','o','u','l','d',' ','n','o','t',' ','b','e',' ','c','a','r','r','i','e','d',' ','o','u','t',' ','b','e','c','a','u','s','e',' ','t','h','e','r','e',' ','i','s',' ','n','o',' ','s','t','e','r','e','o',' ','h','a','r','d','w','a','r','e',' ','p','r','e','s','e','n','t',' ','o','r',' ','a','v','a','i','l','a','b','l','e','.',0 };
@@ -809,10 +809,10 @@ static const CHAR description269A[] = "returned when GetOverlayPosition is calle
static const WCHAR description269W[] = { 'r','e','t','u','r','n','e','d',' ','w','h','e','n',' ','G','e','t','O','v','e','r','l','a','y','P','o','s','i','t','i','o','n',' ','i','s',' ','c','a','l','l','e','d',' ','o','n',' ','a',' ','h','i','d','d','e','n',' ','o','v','e','r','l','a','y',0 };
static const WCHAR name270W[] = { 'D','D','E','R','R','_','N','O','O','V','E','R','L','A','Y','D','E','S','T',0 };
static const CHAR description270A[] = "returned when GetOverlayPosition is called on an overlay that UpdateOverlay has never been called on to establish a destination.";
-static const WCHAR description270W[] = { 'r','e','t','u','r','n','e','d',' ','w','h','e','n',' ','G','e','t','O','v','e','r','l','a','y','P','o','s','i','t','i','o','n',' ','i','s',' ','c','a','l','l','e','d',' ','o','n',' ','a',' ','o','v','e','r','l','a','y',' ','t','h','a','t',' ','U','p','d','a','t','e','O','v','e','r','l','a','y',' ','h','a','s',' ','n','e','v','e','r',' ','b','e','e','n',' ','c','a','l','l','e','d',' ','o','n',' ','t','o',' ','e','s','t','a','b','l','i','s','h',' ','a',' ','d','e','s','t','i','o','n','a','t','i','o','n','.',0 };
+static const WCHAR description270W[] = { 'r','e','t','u','r','n','e','d',' ','w','h','e','n',' ','G','e','t','O','v','e','r','l','a','y','P','o','s','i','t','i','o','n',' ','i','s',' ','c','a','l','l','e','d',' ','o','n',' ','a','n',' ','o','v','e','r','l','a','y',' ','t','h','a','t',' ','U','p','d','a','t','e','O','v','e','r','l','a','y',' ','h','a','s',' ','n','e','v','e','r',' ','b','e','e','n',' ','c','a','l','l','e','d',' ','o','n',' ','t','o',' ','e','s','t','a','b','l','i','s','h',' ','a',' ','d','e','s','t','i','n','a','t','i','o','n','.',0 };
static const WCHAR name271W[] = { 'D','D','E','R','R','_','I','N','V','A','L','I','D','P','O','S','I','T','I','O','N',0 };
static const CHAR description271A[] = "returned when the position of the overlay on the destination is no longer legal for that destination.";
-static const WCHAR description271W[] = { 'r','e','t','u','r','n','e','d',' ','w','h','e','n',' ','t','h','e',' ','p','o','s','i','t','i','o','n',' ','o','f',' ','t','h','e',' ','o','v','e','r','l','a','y',' ','o','n',' ','t','h','e',' ','d','e','s','t','i','o','n','a','t','i','o','n',' ','i','s',' ','n','o',' ','l','o','n','g','e','r',' ','l','e','g','a','l',' ','f','o','r',' ','t','h','a','t',' ','d','e','s','t','i','n','a','t','i','o','n','.',0 };
+static const WCHAR description271W[] = { 'r','e','t','u','r','n','e','d',' ','w','h','e','n',' ','t','h','e',' ','p','o','s','i','t','i','o','n',' ','o','f',' ','t','h','e',' ','o','v','e','r','l','a','y',' ','o','n',' ','t','h','e',' ','d','e','s','t','i','n','a','t','i','o','n',' ','i','s',' ','n','o',' ','l','o','n','g','e','r',' ','l','e','g','a','l',' ','f','o','r',' ','t','h','a','t',' ','d','e','s','t','i','n','a','t','i','o','n','.',0 };
static const WCHAR name272W[] = { 'D','D','E','R','R','_','N','O','T','A','O','V','E','R','L','A','Y','S','U','R','F','A','C','E',0 };
static const CHAR description272A[] = "returned when an overlay member is called for a non-overlay surface";
static const WCHAR description272W[] = { 'r','e','t','u','r','n','e','d',' ','w','h','e','n',' ','a','n',' ','o','v','e','r','l','a','y',' ','m','e','m','b','e','r',' ','i','s',' ','c','a','l','l','e','d',' ','f','o','r',' ','a',' ','n','o','n','-','o','v','e','r','l','a','y',' ','s','u','r','f','a','c','e',0 };