예제 #1
0
int prSetSpeechPause(struct VMGlobals *g, int numArgsPushed){

	OSErr theErr = noErr;
	//PyrSlot *a = g->sp-2;
	PyrSlot *b = g->sp-1;
	PyrSlot *c = g->sp;
	int val;
	int chan;
	slotIntVal(b, &chan);
	slotIntVal(c, &val);
	//Fixed newVal = (Fixed)(val * 65536.0);
	if(val) {
        theErr = ContinueSpeech(fCurSpeechChannel[chan] );
	} else {
        theErr = PauseSpeechAt(fCurSpeechChannel[chan], kImmediate);
	}
	return errNone;
}
예제 #2
0
void ofxSpeechSynthesizer::pauseSpeaking()
{
    OSErr       errorStatus;
    errorStatus = PauseSpeechAt(speechChannel, kImmediate);
}