[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: branches/KDE/3.5/kdeaccessibility/kttsd/kttsd
From: Gary Cramblitt <garycramblitt () comcast ! net>
Date: 2006-01-12 3:30:45
Message-ID: 1137036645.327657.867.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 497149 by cramblitt:
Minor bug fix. Pausing when popping up status in systray.
M +25 -21 speaker.cpp
--- branches/KDE/3.5/kdeaccessibility/kttsd/kttsd/speaker.cpp #497148:497149
@@ -752,28 +752,32 @@
*/
uint Speaker::moveRelTextSentence(const int n, const uint jobNum)
{
- deleteUtteranceByJobNum(jobNum);
- // TODO: More efficient way to advance one or two sentences, since there is a
- // good chance those utterances are already in the queue and synthesized.
- uint seq = m_speechData->moveRelTextSentence(n, jobNum);
- kdDebug() << "Speaker::moveRelTextSentence: job num: " << jobNum << " moved to \
seq: " << seq << endl;
- if (jobNum == m_lastJobNum)
- {
- if (seq == 0)
- m_lastSeq = seq;
- else
- m_lastSeq = seq - 1;
+ if (0 == n)
+ return m_speechData->getJobSequenceNum(jobNum);
+ else {
+ deleteUtteranceByJobNum(jobNum);
+ // TODO: More efficient way to advance one or two sentences, since there is \
a + // good chance those utterances are already in the queue and synthesized.
+ uint seq = m_speechData->moveRelTextSentence(n, jobNum);
+ kdDebug() << "Speaker::moveRelTextSentence: job num: " << jobNum << " moved \
to seq: " << seq << endl; + if (jobNum == m_lastJobNum)
+ {
+ if (seq == 0)
+ m_lastSeq = seq;
+ else
+ m_lastSeq = seq - 1;
+ }
+ if (jobNum == m_currentJobNum)
+ {
+ m_lastJobNum = jobNum;
+ if (seq == 0)
+ m_lastSeq = 0;
+ else
+ m_lastSeq = seq - 1;
+ doUtterances();
+ }
+ return seq;
}
- if (jobNum == m_currentJobNum)
- {
- m_lastJobNum = jobNum;
- if (seq == 0)
- m_lastSeq = 0;
- else
- m_lastSeq = seq - 1;
- doUtterances();
- }
- return seq;
}
/* Private Methods ==========================================================*/
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic