Skip to content

Commit

Permalink
added queue type support to earcons.
Browse files Browse the repository at this point in the history
  • Loading branch information
eeejay committed Oct 12, 2011
1 parent e054952 commit 71cad6e
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions content/speech.js
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -56,12 +56,14 @@ TextToSpeech.prototype._get_android_tts = function () {
return android_tts; return android_tts;
} }


TextToSpeech.prototype.playEarcon = function (earcon) { TextToSpeech.prototype.playEarcon = function (earcon, queue) {
console.log("TextToSpeech.playEarcon"); console.log("TextToSpeech.playEarcon");
queue = (queue == undefined) ?
TextToSpeech.QUEUE_FLUSH : TextToSpeech.QUEUE_ADD;
if (this.android_tts) { if (this.android_tts) {
if (!this._registered_earcons) if (!this._registered_earcons)
this._register_earcons(); this._register_earcons();
this.android_tts.playEarcon(earcon, TextToSpeech.QUEUE_FLUSH, 0); this.android_tts.playEarcon(earcon, queue, 0);
} }
this._playing_earcon = true; this._playing_earcon = true;
} }
Expand Down

0 comments on commit 71cad6e

Please sign in to comment.