void CloseTTS() { #ifdef HAVE_SAPI_H ReleaseTTS(); s_bTTSDisabled = true; #endif//HAVE_SAPI_H }
BOOL CPPgNotify::OnApply() { thePrefs.notifierOnDownloadFinished = IsDlgButtonChecked(IDC_CB_TBN_ONDOWNLOAD)!=0; thePrefs.notifierOnNewDownload = IsDlgButtonChecked(IDC_CB_TBN_ONNEWDOWNLOAD)!=0; thePrefs.notifierOnChat = IsDlgButtonChecked(IDC_CB_TBN_ONCHAT)!=0; thePrefs.notifierOnLog = IsDlgButtonChecked(IDC_CB_TBN_ONLOG)!=0; thePrefs.notifierOnImportantError = IsDlgButtonChecked(IDC_CB_TBN_IMPORTATNT)!=0; thePrefs.notifierOnEveryChatMsg = IsDlgButtonChecked(IDC_CB_TBN_POP_ALWAYS)!=0; thePrefs.notifierOnNewVersion = IsDlgButtonChecked(IDC_CB_TBN_ONNEWVERSION)!=0; if (m_bEnableEMail){ GetDlgItemText(IDC_EDIT_SMTPSERVER, thePrefs.m_strNotifierMailServer); GetDlgItemText(IDC_EDIT_SENDER, thePrefs.m_strNotifierMailSender); GetDlgItemText(IDC_EDIT_RECEIVER, thePrefs.m_strNotifierMailReceiver); thePrefs.SetNotifierSendMail(IsDlgButtonChecked(IDC_CB_ENABLENOTIFICATIONS) != 0); } ApplyNotifierSoundType(); if (thePrefs.notifierSoundType != ntfstSpeech) ReleaseTTS(); SetModified(FALSE); return CPropertyPage::OnApply(); }
CTextToSpeech::~CTextToSpeech() { ASSERT( m_pISpVoice == NULL ); ReleaseTTS(); }