Re: Yasr Questions, Optimizing Output for Speech -- corrected code
Hi,
Umm about the code in my first reply, just noticed the while lacks a
semicolon, oh well. Then again, it's about one in the morning here <smiley>.
Corrected version:
char* redundancyFilter(char* c, const char* p)
{ // c = current output, p = previous
const char* cStart = c;
do
{
if(*c == *p && isalpha(*c))
*c = ' ';
} while(++c && ++p);
return cStart;
} // redundancyFilter
With kind regards Veli-Pekka Tätilä (vtatila@mail.student.oulu.fi)
Accessibility, game music, synthesizers and more:
http://www.student.oulu.fi/~vtatila
Reply to: