diff options
| author | Jaromir Wysoglad | 2019-07-12 22:16:44 +0200 | 
|---|---|---|
| committer | Filippos Karapetis | 2019-09-01 22:47:55 +0300 | 
| commit | 8bd7e392657989dd49da592d8b0bf6e14fe50166 (patch) | |
| tree | 83eaaabe11167533a7625fad3eaa76f7acdf01d0 /common | |
| parent | b5cebcbeaed5b1b860f2686379fc288c137a4c2f (diff) | |
| download | scummvm-rg350-8bd7e392657989dd49da592d8b0bf6e14fe50166.tar.gz scummvm-rg350-8bd7e392657989dd49da592d8b0bf6e14fe50166.tar.bz2 scummvm-rg350-8bd7e392657989dd49da592d8b0bf6e14fe50166.zip  | |
TTS: Add voice selection to options
Diffstat (limited to 'common')
| -rw-r--r-- | common/text-to-speech.h | 10 | 
1 files changed, 7 insertions, 3 deletions
diff --git a/common/text-to-speech.h b/common/text-to-speech.h index 8d0021e6a8..4e66cf23e4 100644 --- a/common/text-to-speech.h +++ b/common/text-to-speech.h @@ -44,18 +44,22 @@ class TTSVoice {  	public:  		TTSVoice()  			: _gender(UNKNOWN) -			, _data(nullptr) {} -		TTSVoice(Gender gender, void *data)  +			, _data(nullptr) +			, _description("") {} +		TTSVoice(Gender gender, void *data, String description)   			: _gender(gender) -			, _data(data) {} +			, _data(data) +			, _description(description) {}  		Gender getGender() { return _gender; };  		void setGender(Gender gender) { _gender = gender; };  		void setData(void *data) { _data = data; };  		void *getData() { return _data; }; +		String getDescription() { return _description; };  	protected:  		Gender _gender;  		void *_data; +		String _description;  };  struct TTSState {  | 
