<script type="text/javascript" src="phonegap.js"></script> <script type="text/javascript" src="PGLowLatencyAudio.js"></script> <script type="text/javascript" src="main.js"></script> <script> var lla; var url_start = 'sounds/startup.wav'; document.addEventListener("deviceready",onDeviceReady,false); function onDeviceReady(){ if( window.plugins && window.plugin.LowLatencyAudio) { lla = window.plugins.LowLatencyAudio; lla.preloadAudio(url_start, url_start, 1, success, fail); } } function play_startup(){ lla.play(url_start); } </script> //From main.js play_startup();
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)