var com=com||{};com.eqela=com.eqela||{};com.eqela.libaudioplayer=com.eqela.libaudioplayer||{};com.eqela.libaudioplayer.AudioPlayerManager=function(){eq.api.Object.call(this);{}};P=com.eqela.libaudioplayer.AudioPlayerManager.prototype=(function(o){function F(){};F.prototype=o;return(new F());})(eq.api.Object.prototype);P._t={};P._t['eq.api.Object']=true;P._t['com.eqela.libaudioplayer.AudioPlayerManager']=true;P.constructor=com.eqela.libaudioplayer.AudioPlayerManager;com.eqela.libaudioplayer.AudioPlayerManager.com_eqela_libaudioplayer_AudioPlayerManager_backend=null;com.eqela.libaudioplayer.AudioPlayerManager.com_eqela_libaudioplayer_AudioPlayerManager_clips=null;com.eqela.libaudioplayer.AudioPlayerManager.initialize=function(){if(com.eqela.libaudioplayer.AudioPlayerManager.com_eqela_libaudioplayer_AudioPlayerManager_backend===null){}};com.eqela.libaudioplayer.AudioPlayerManager.prepare=function(id){com.eqela.libaudioplayer.AudioPlayerManager.initialize();if(com.eqela.libaudioplayer.AudioPlayerManager.com_eqela_libaudioplayer_AudioPlayerManager_backend===null){return;}var clip=com.eqela.libaudioplayer.AudioPlayerManager.com_eqela_libaudioplayer_AudioPlayerManager_backend.create(id);if(clip===null){return;}if(com.eqela.libaudioplayer.AudioPlayerManager.com_eqela_libaudioplayer_AudioPlayerManager_clips===null){com.eqela.libaudioplayer.AudioPlayerManager.com_eqela_libaudioplayer_AudioPlayerManager_clips=eq.api.HashTable.create();}if(com.eqela.libaudioplayer.AudioPlayerManager.com_eqela_libaudioplayer_AudioPlayerManager_clips!==null){eq.api.HashTable.prototype.set.call(com.eqela.libaudioplayer.AudioPlayerManager.com_eqela_libaudioplayer_AudioPlayerManager_clips,id,clip);}};com.eqela.libaudioplayer.AudioPlayerManager.get=function(id){var _t24=null;if(com.eqela.libaudioplayer.AudioPlayerManager.com_eqela_libaudioplayer_AudioPlayerManager_clips===null){return(null);}return(((function(l,r){return(l!=null&&l._t[r]===true);})((_t24=eq.api.HashTable.prototype.get.call(com.eqela.libaudioplayer.AudioPlayerManager.com_eqela_libaudioplayer_AudioPlayerManager_clips,id)),"com.eqela.libaudioplayer.AudioPlayer")?_t24:null));};com.eqela.libaudioplayer.AudioPlayerManager.play=function(id){var clip=com.eqela.libaudioplayer.AudioPlayerManager.get(id);if(clip===null){return(false);}return(clip.play());};com.eqela.libaudioplayer.AudioPlayerManager.pause=function(id){var clip=com.eqela.libaudioplayer.AudioPlayerManager.get(id);if(clip===null){return(false);}return(clip.pause());};com.eqela.libaudioplayer.AudioPlayerManager.stop=function(id){var clip=com.eqela.libaudioplayer.AudioPlayerManager.get(id);if(clip===null){return(false);}return(clip.stop());};com.eqela.libaudioplayer.AudioPlayerManager.seek=function(id,sec){var clip=com.eqela.libaudioplayer.AudioPlayerManager.get(id);if(clip===null){return(false);}return(clip.seek(sec));};com.eqela.libaudioplayer.AudioPlayerManager.clear=function(){com.eqela.libaudioplayer.AudioPlayerManager.com_eqela_libaudioplayer_AudioPlayerManager_clips=null;};