SupSuper
1c1cc91ad5
COMMON: Don't include win32.h in common/encoding.h
2019-09-02 08:01:18 +03:00
Jaromir Wysoglad
d4a98dcadb
COMMON: Add CP437 encoding conversion table.
2019-09-01 22:47:55 +03:00
Jaromir Wysoglad
291360a280
COMMON: Add CP850 conversion.
...
CP850 is used by the mortevielle engine (and apparently by other
engines too). Anytime an engine using CP850 encoding wants to use
the TTS, the encoding has to be converted, so this is pretty
important encoding conversion to support. Unfortunately SDL
(when compiled without iconv) doesn't support this encoding
(which means, there might not be a way to convert this encoding
on some platforms), so I added a conversion table for this.
2019-09-01 22:47:55 +03:00
Jaromir Wysoglad
4b5b812712
TTS: Better documentation of TTSVoice.
2019-09-01 22:47:55 +03:00
Jaromir Wysoglad
54c37f6f46
TTS: Document diferences in resume()
...
On linux the resume() behaves slightly differently than on
other platforms.
2019-09-01 22:47:55 +03:00
Jaromir Wysoglad
c2c4458253
JANITORIAL: Remove some trailing whitespaces
2019-09-01 22:47:55 +03:00
Jaromir Wysoglad
01d843c527
TTS: Update documentation of INTERRUPT_NO_REPEAT
2019-09-01 22:47:55 +03:00
Jaromir Wysoglad
38e769430a
TTS: Improve documentation
2019-09-01 22:47:55 +03:00
Jaromir Wysoglad
4bae32ffe7
TTS: Add *_NO_REPEAT actions
2019-09-01 22:47:55 +03:00
Jaromir Wysoglad
1694b930e6
TTS: Make one say() method non-virtual
2019-09-01 22:47:55 +03:00
Jaromir Wysoglad
6703f88f7f
TTS: Implement speech queueing on Linux and Win
2019-09-01 22:47:55 +03:00
Thierry Crozat
5baa023ed0
TTS: Improve documentation
2019-09-01 22:47:55 +03:00
Jaromir Wysoglad
c7dbf192ef
TTS: Remove unneeded code
...
Remove debuging outputs
Remove commented iconv implementation of text conversion to UTF-8
2019-09-01 22:47:55 +03:00
Jaromir Wysoglad
58065ceacd
TTS: Refactoring
...
* Delete multiple empty rows
* Make getVolume non-virtual and leave just the implementation
in base class
* Resolve warning about signed / unsigned comparison in
gui-manager
* Clear availableVoices when updating voices on linux
* By default set language to transMan language on windows
(if the transMan is available)
* Remove freeVoices method from Windows ttsMan, it isn't needed
anymore
2019-09-01 22:47:55 +03:00
Jaromir Wysoglad
0631070833
TTS: Fix state switching on windows
...
Voice is changed when changing language on windows, so when poping
state, the voice, that should get set has to be saved before
changing the language.
The speech shouldn't continue when changing state, so it is stopped
in pushState and popState.
2019-09-01 22:47:55 +03:00
Jaromir Wysoglad
33549d9c02
TTS: Add getVoiceIndicesByGender to the base class
...
This is a way to easily get a list of voices with the given gender
2019-09-01 22:47:55 +03:00
Jaromir Wysoglad
b5d5576f90
TTS: Add check to getVoice, fix typo.
...
Check if _availableVoices isn't empty.
Replace availaible with available
2019-09-01 22:47:55 +03:00
Jaromir Wysoglad
bb3346fba7
TTS: Update the TTS documentation
2019-09-01 22:47:55 +03:00
Jaromir Wysoglad
7c78912931
TTS: Move popState to the base class
2019-09-01 22:47:55 +03:00
Jaromir Wysoglad
5c1f562452
TTS: Implement conversion to UTF-8 in say on linux
2019-09-01 22:47:55 +03:00
Jaromir Wysoglad
5d9f03e71d
TTS: Add reference counting to TTSVoice
...
Also refactor TTSVoice destruction to use this reference counting.
2019-09-01 22:47:55 +03:00
Jaromir Wysoglad
62e219ece3
TTS: Implement default behavior of TTS setters
2019-09-01 22:47:55 +03:00
Jaromir Wysoglad
dae7d64d38
TTS: Add documentation to common/text-to-speech.h
2019-09-01 22:47:55 +03:00
Jaromir Wysoglad
33f8aadfeb
TTS: Add age to TTSVoice
2019-09-01 22:47:55 +03:00
Jaromir Wysoglad
318c6d7ec6
TTS: Finish implementing the Windows TTS manager
2019-09-01 22:47:55 +03:00
Jaromir Wysoglad
8bd7e39265
TTS: Add voice selection to options
2019-09-01 22:47:55 +03:00
Jaromir Wysoglad
b5cebcbeae
TTS: Add text to speech to the GUI.
2019-09-01 22:47:55 +03:00
Jaromir Wysoglad
62a011e28a
TTS: Add ttsStatus push and pop functions
2019-09-01 22:47:55 +03:00
Jaromir Wysoglad
7f895d21df
TTS: Add checks for correct TTS engine state.
2019-09-01 22:47:55 +03:00
Jaromir Wysoglad
8c44b03231
TTS: Resolve segfault when exiting scummvm
2019-09-01 22:47:55 +03:00
Jaromir Wysoglad
39e74b027e
TTS: Add part of linux TTS
2019-09-01 22:47:55 +03:00
Jaromir Wysoglad
f78fc85f3a
TTS: Create a TTS skeleton
2019-09-01 22:47:55 +03:00
Jaromir Wysoglad
b0c8b368a9
COMMON: Don't include iconv.h in common/encoding.h
...
Move #include<iconv.h> from common/encoding.h to
common/encoding.cpp and change the methods accordingly.
This resulted in not saving the iconvHandle if using the
"non-static" version of conversion, but it simplified the code
and hopefuly resolved issues with forbidden symbols on some
platforms.
2019-08-25 13:46:16 +03:00
Jaromir Wysoglad
96fef16693
COMMON: Don't include config.h before scummsys.h
...
Thil should fix the ds build. For some reason
I thought the forbidden.h wouldn't allow me to
include the iconv.h, so I tryed to include it
before the forbidden.h (it seems like I didn't
have to do that.)
2019-08-25 03:14:24 +01:00
Jaromir Wysoglad
fcbf59f5ba
COMMON: Convert endianity when needed in Encoding.
2019-08-24 18:12:45 +03:00
Jaromir Wysoglad
0c74a7f27e
COMMON: Fix typos
2019-08-24 18:12:45 +03:00
Jaromir Wysoglad
f8ac40af7c
COMMON: Encoding refactoring
2019-08-24 18:12:45 +03:00
Jaromir Wysoglad
05df774905
COMMON: Add OSystem::convertEncoding documentation
2019-08-24 18:12:45 +03:00
Jaromir Wysoglad
b20922942c
COMMON: Add missing documentation.
2019-08-24 18:12:45 +03:00
Jaromir Wysoglad
96270d4bf2
JANITORIAL: Remove debuging code.
2019-08-24 18:12:45 +03:00
Jaromir Wysoglad
a0564bc564
COMMON: Resolve endianity in Encoding
2019-08-24 18:12:45 +03:00
Jaromir Wysoglad
613613568c
COMMON: Rename methods in Common::Encoding
2019-08-24 18:12:45 +03:00
Jaromir Wysoglad
24d35df476
COMMON: Refactor convertIconv
2019-08-24 18:12:45 +03:00
Jaromir Wysoglad
9fa09eeefe
COMMON: Check for return values in Encoding
2019-08-24 18:12:45 +03:00
Jaromir Wysoglad
5043dec13c
COMMON: Add propper Encoding setters
2019-08-24 18:12:45 +03:00
Jaromir Wysoglad
73fa9d921f
COMMON: Add documentation to Common::Encoding
2019-08-24 18:12:45 +03:00
Jaromir Wysoglad
61cf628bfb
COMMON: Add cyrilic transliteration to Encoding.
2019-08-24 18:12:45 +03:00
Jaromir Wysoglad
888f3e4d30
COMMON: Add transMan mapping encoding conversion.
2019-08-24 18:12:45 +03:00
Jaromir Wysoglad
bfdff38d01
COMMON: Use backend specific encoding conversion
2019-08-24 18:12:45 +03:00
Jaromir Wysoglad
a43526cb3e
OSYSTEM: Add convertEncoding virtual method
2019-08-24 18:12:45 +03:00