Permalink
Browse files

added queue type support to earcons.

  • Loading branch information...
1 parent e054952 commit 71cad6eb5241f22591772a14739b8a0b9c65c7c9 @eeejay committed Oct 12, 2011
Showing with 4 additions and 2 deletions.
  1. +4 −2 content/speech.js
View
@@ -56,12 +56,14 @@ TextToSpeech.prototype._get_android_tts = function () {
return android_tts;
}
-TextToSpeech.prototype.playEarcon = function (earcon) {
+TextToSpeech.prototype.playEarcon = function (earcon, queue) {
console.log("TextToSpeech.playEarcon");
+ queue = (queue == undefined) ?
+ TextToSpeech.QUEUE_FLUSH : TextToSpeech.QUEUE_ADD;
if (this.android_tts) {
if (!this._registered_earcons)
this._register_earcons();
- this.android_tts.playEarcon(earcon, TextToSpeech.QUEUE_FLUSH, 0);
+ this.android_tts.playEarcon(earcon, queue, 0);
}
this._playing_earcon = true;
}

0 comments on commit 71cad6e

Please sign in to comment.