fake audio
parent
102bf7fc6a
commit
cc7960459a
|
@ -982,12 +982,13 @@ GameLib.System.Input.prototype.onTouchStart = function(event) {
|
||||||
|
|
||||||
if (this.playAudio) {
|
if (this.playAudio) {
|
||||||
|
|
||||||
GameLib.Event.Emit(
|
var audio = new Audio('http://live-api-v1.cybafelo.com/uploads/cybafelo/root/root/test/dummy.mp3');
|
||||||
GameLib.Event.PLAY_AUDIO,
|
|
||||||
{
|
try {
|
||||||
name : 'Audio - Dummy'
|
audio.play();
|
||||||
|
} catch (error) {
|
||||||
|
console.log('could not load dummy audio');
|
||||||
}
|
}
|
||||||
);
|
|
||||||
|
|
||||||
this.playAudio = false;
|
this.playAudio = false;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue