mirror of
https://github.com/libretro/RetroArch
synced 2025-01-30 03:32:46 +00:00
Moved SAPI code into a define.
This commit is contained in:
parent
289be872f3
commit
adb5c4c7dd
@ -23,6 +23,12 @@ ifeq ($(HAVE_NVDA), 1)
|
||||
LIBS += nvdaControllerClient64.dll
|
||||
endif
|
||||
|
||||
ifeq ($(HAVE_SAPI), 1)
|
||||
LIBS += sapi.dll
|
||||
endif
|
||||
|
||||
|
||||
|
||||
ifeq ($(HAVE_GL_CONTEXT),)
|
||||
HAVE_GL_CONTEXT = 0
|
||||
HAVE_GL_MODERN = 0
|
||||
|
@ -878,9 +878,11 @@ static bool create_win32_process(char* cmd)
|
||||
return true;
|
||||
}
|
||||
|
||||
#ifdef HAVE_SAPI
|
||||
#define COBJMACROS
|
||||
#include <sapi.h>
|
||||
#include <ole2.h>
|
||||
#endif
|
||||
|
||||
static ISpVoice* pVoice = NULL;
|
||||
#ifdef HAVE_NVDA
|
||||
@ -928,6 +930,7 @@ static bool is_narrator_running_windows(void)
|
||||
*/
|
||||
}
|
||||
#endif
|
||||
#ifdef HAVE_SAPI
|
||||
else
|
||||
{
|
||||
SPVOICESTATUS pStatus;
|
||||
@ -940,6 +943,7 @@ static bool is_narrator_running_windows(void)
|
||||
return false;
|
||||
}
|
||||
}
|
||||
#endif
|
||||
return false;
|
||||
}
|
||||
|
||||
@ -1012,6 +1016,7 @@ static bool accessibility_speak_windows(int speed,
|
||||
return true;
|
||||
}
|
||||
#endif
|
||||
#ifdef HAVE_SAPI
|
||||
else
|
||||
{
|
||||
/* stop the old voice if running */
|
||||
@ -1038,6 +1043,7 @@ static bool accessibility_speak_windows(int speed,
|
||||
}
|
||||
return true;
|
||||
}
|
||||
#endif
|
||||
}
|
||||
#endif
|
||||
|
||||
|
@ -1,6 +1,7 @@
|
||||
HAVE_LIBRETRO= # Libretro library used
|
||||
HAVE_ASSETS_DIR= # Assets install directory
|
||||
HAVE_NVDA=no # NVDA support
|
||||
HAVE_SAPI=no # SAPI support
|
||||
HAVE_BLISSBOX=auto # Blissbox support
|
||||
HAVE_ANGLE=no # ANGLE support (OpenGL wrapper)
|
||||
HAVE_CONFIGFILE=yes # Config file support
|
||||
|
Loading…
x
Reference in New Issue
Block a user