本文整理匯總了TypeScript中howler.Howl類的典型用法代碼示例。如果您正苦於以下問題:TypeScript Howl類的具體用法?TypeScript Howl怎麽用?TypeScript Howl使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。
在下文中一共展示了Howl類的6個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的TypeScript代碼示例。
示例1: playTransitionSound
playTransitionSound() {
this.transition.play();
this.transition.fade(1,0.5,2);
}
示例2: playBlipSound
playBlipSound() {
this.blip.play();
}
示例3: playLostSound
playLostSound() {
this.menuSounds.volume(0.2);
this.menuSounds.play('lost');
}
示例4: playWonSound
playWonSound() {
this.menuSounds.volume(1);
this.menuSounds.play('won');
}
示例5: playFlipSound
playFlipSound() {
this.flip.play();
}
示例6: playHighlightSound
playHighlightSound() {
this.highlight.play();
}