aboutsummaryrefslogtreecommitdiff
path: root/common/text-to-speech.h
diff options
context:
space:
mode:
Diffstat (limited to 'common/text-to-speech.h')
-rw-r--r--common/text-to-speech.h22
1 files changed, 12 insertions, 10 deletions
diff --git a/common/text-to-speech.h b/common/text-to-speech.h
index 63ea1a95c0..606f8d2d4b 100644
--- a/common/text-to-speech.h
+++ b/common/text-to-speech.h
@@ -52,16 +52,15 @@ class TTSVoice {
};
public:
- TTSVoice()
- : _gender(UNKNOWN_GENDER)
- , _age(UNKNOWN_AGE)
- , _data(nullptr)
- , _description("") {}
- TTSVoice(Gender gender, Age age, void *data, String description)
- : _gender(gender)
- , _age(age)
- , _data(data)
- , _description(description) {}
+ TTSVoice();
+
+ TTSVoice(Gender gender, Age age, void *data, String description) ;
+
+ TTSVoice(const TTSVoice& voice);
+
+ ~TTSVoice();
+
+ TTSVoice& operator=(const TTSVoice& voice);
/**
* Returns the gender of the used voice.
@@ -120,6 +119,7 @@ class TTSVoice {
Age _age;
void *_data;
String _description;
+ int *_refCount;
};
struct TTSState {
@@ -261,6 +261,8 @@ public:
*/
virtual bool popState() { return true; }
+ virtual void freeVoiceData(void *data) {}
+
protected:
TTSState *_ttsState;