Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

audioplayr

Package Overview
Dependencies
Maintainers
1
Versions
31
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

audioplayr - npm Package Compare versions

Comparing version 0.5.2 to 0.6.0

2

docs/assets/js/search.js

@@ -1,1 +0,1 @@

var typedoc = typedoc || {};typedoc.search = typedoc.search || {};typedoc.search.data = {"kinds":{"1":"External module","128":"Class","256":"Interface","512":"Constructor","1024":"Property","2048":"Method"},"rows":[{"id":0,"kind":1,"name":"\"IAudioPlayr\"","url":"modules/_iaudioplayr_.html","classes":"tsd-kind-external-module"},{"id":1,"kind":256,"name":"ILibrarySettings","url":"interfaces/_iaudioplayr_.ilibrarysettings.html","classes":"tsd-kind-interface tsd-parent-kind-external-module","parent":"\"IAudioPlayr\""},{"id":2,"kind":256,"name":"ISoundsLibrary","url":"interfaces/_iaudioplayr_.isoundslibrary.html","classes":"tsd-kind-interface tsd-parent-kind-external-module","parent":"\"IAudioPlayr\""},{"id":3,"kind":256,"name":"IDirectoriesLibrary","url":"interfaces/_iaudioplayr_.idirectorieslibrary.html","classes":"tsd-kind-interface tsd-parent-kind-external-module","parent":"\"IAudioPlayr\""},{"id":4,"kind":256,"name":"IGetVolumeLocal","url":"interfaces/_iaudioplayr_.igetvolumelocal.html","classes":"tsd-kind-interface tsd-parent-kind-external-module","parent":"\"IAudioPlayr\""},{"id":5,"kind":256,"name":"IGetThemeDefault","url":"interfaces/_iaudioplayr_.igetthemedefault.html","classes":"tsd-kind-interface tsd-parent-kind-external-module","parent":"\"IAudioPlayr\""},{"id":6,"kind":256,"name":"IAudioPlayrSettings","url":"interfaces/_iaudioplayr_.iaudioplayrsettings.html","classes":"tsd-kind-interface tsd-parent-kind-external-module","parent":"\"IAudioPlayr\""},{"id":7,"kind":1024,"name":"library","url":"interfaces/_iaudioplayr_.iaudioplayrsettings.html#library","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"\"IAudioPlayr\".IAudioPlayrSettings"},{"id":8,"kind":1024,"name":"directory","url":"interfaces/_iaudioplayr_.iaudioplayrsettings.html#directory","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"\"IAudioPlayr\".IAudioPlayrSettings"},{"id":9,"kind":1024,"name":"fileTypes","url":"interfaces/_iaudioplayr_.iaudioplayrsettings.html#filetypes","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"\"IAudioPlayr\".IAudioPlayrSettings"},{"id":10,"kind":1024,"name":"ItemsHolder","url":"interfaces/_iaudioplayr_.iaudioplayrsettings.html#itemsholder","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"\"IAudioPlayr\".IAudioPlayrSettings"},{"id":11,"kind":1024,"name":"getThemeDefault","url":"interfaces/_iaudioplayr_.iaudioplayrsettings.html#getthemedefault","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"\"IAudioPlayr\".IAudioPlayrSettings"},{"id":12,"kind":1024,"name":"getVolumeLocal","url":"interfaces/_iaudioplayr_.iaudioplayrsettings.html#getvolumelocal","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"\"IAudioPlayr\".IAudioPlayrSettings"},{"id":13,"kind":256,"name":"IAudioPlayr","url":"interfaces/_iaudioplayr_.iaudioplayr.html","classes":"tsd-kind-interface tsd-parent-kind-external-module","parent":"\"IAudioPlayr\""},{"id":14,"kind":2048,"name":"getLibrary","url":"interfaces/_iaudioplayr_.iaudioplayr.html#getlibrary","classes":"tsd-kind-method tsd-parent-kind-interface","parent":"\"IAudioPlayr\".IAudioPlayr"},{"id":15,"kind":2048,"name":"getFileTypes","url":"interfaces/_iaudioplayr_.iaudioplayr.html#getfiletypes","classes":"tsd-kind-method tsd-parent-kind-interface","parent":"\"IAudioPlayr\".IAudioPlayr"},{"id":16,"kind":2048,"name":"getSounds","url":"interfaces/_iaudioplayr_.iaudioplayr.html#getsounds","classes":"tsd-kind-method tsd-parent-kind-interface","parent":"\"IAudioPlayr\".IAudioPlayr"},{"id":17,"kind":2048,"name":"getTheme","url":"interfaces/_iaudioplayr_.iaudioplayr.html#gettheme","classes":"tsd-kind-method tsd-parent-kind-interface","parent":"\"IAudioPlayr\".IAudioPlayr"},{"id":18,"kind":2048,"name":"getThemeName","url":"interfaces/_iaudioplayr_.iaudioplayr.html#getthemename","classes":"tsd-kind-method tsd-parent-kind-interface","parent":"\"IAudioPlayr\".IAudioPlayr"},{"id":19,"kind":2048,"name":"getDirectory","url":"interfaces/_iaudioplayr_.iaudioplayr.html#getdirectory","classes":"tsd-kind-method tsd-parent-kind-interface","parent":"\"IAudioPlayr\".IAudioPlayr"},{"id":20,"kind":2048,"name":"getVolume","url":"interfaces/_iaudioplayr_.iaudioplayr.html#getvolume","classes":"tsd-kind-method tsd-parent-kind-interface","parent":"\"IAudioPlayr\".IAudioPlayr"},{"id":21,"kind":2048,"name":"setVolume","url":"interfaces/_iaudioplayr_.iaudioplayr.html#setvolume","classes":"tsd-kind-method tsd-parent-kind-interface","parent":"\"IAudioPlayr\".IAudioPlayr"},{"id":22,"kind":2048,"name":"getMuted","url":"interfaces/_iaudioplayr_.iaudioplayr.html#getmuted","classes":"tsd-kind-method tsd-parent-kind-interface","parent":"\"IAudioPlayr\".IAudioPlayr"},{"id":23,"kind":2048,"name":"setMuted","url":"interfaces/_iaudioplayr_.iaudioplayr.html#setmuted","classes":"tsd-kind-method tsd-parent-kind-interface","parent":"\"IAudioPlayr\".IAudioPlayr"},{"id":24,"kind":2048,"name":"toggleMuted","url":"interfaces/_iaudioplayr_.iaudioplayr.html#togglemuted","classes":"tsd-kind-method tsd-parent-kind-interface","parent":"\"IAudioPlayr\".IAudioPlayr"},{"id":25,"kind":2048,"name":"setMutedOn","url":"interfaces/_iaudioplayr_.iaudioplayr.html#setmutedon","classes":"tsd-kind-method tsd-parent-kind-interface","parent":"\"IAudioPlayr\".IAudioPlayr"},{"id":26,"kind":2048,"name":"setMutedOff","url":"interfaces/_iaudioplayr_.iaudioplayr.html#setmutedoff","classes":"tsd-kind-method tsd-parent-kind-interface","parent":"\"IAudioPlayr\".IAudioPlayr"},{"id":27,"kind":2048,"name":"getGetVolumeLocal","url":"interfaces/_iaudioplayr_.iaudioplayr.html#getgetvolumelocal","classes":"tsd-kind-method tsd-parent-kind-interface","parent":"\"IAudioPlayr\".IAudioPlayr"},{"id":28,"kind":2048,"name":"setGetVolumeLocal","url":"interfaces/_iaudioplayr_.iaudioplayr.html#setgetvolumelocal","classes":"tsd-kind-method tsd-parent-kind-interface","parent":"\"IAudioPlayr\".IAudioPlayr"},{"id":29,"kind":2048,"name":"getGetThemeDefault","url":"interfaces/_iaudioplayr_.iaudioplayr.html#getgetthemedefault","classes":"tsd-kind-method tsd-parent-kind-interface","parent":"\"IAudioPlayr\".IAudioPlayr"},{"id":30,"kind":2048,"name":"setGetThemeDefault","url":"interfaces/_iaudioplayr_.iaudioplayr.html#setgetthemedefault","classes":"tsd-kind-method tsd-parent-kind-interface","parent":"\"IAudioPlayr\".IAudioPlayr"},{"id":31,"kind":2048,"name":"play","url":"interfaces/_iaudioplayr_.iaudioplayr.html#play","classes":"tsd-kind-method tsd-parent-kind-interface","parent":"\"IAudioPlayr\".IAudioPlayr"},{"id":32,"kind":2048,"name":"pauseAll","url":"interfaces/_iaudioplayr_.iaudioplayr.html#pauseall","classes":"tsd-kind-method tsd-parent-kind-interface","parent":"\"IAudioPlayr\".IAudioPlayr"},{"id":33,"kind":2048,"name":"resumeAll","url":"interfaces/_iaudioplayr_.iaudioplayr.html#resumeall","classes":"tsd-kind-method tsd-parent-kind-interface","parent":"\"IAudioPlayr\".IAudioPlayr"},{"id":34,"kind":2048,"name":"pauseTheme","url":"interfaces/_iaudioplayr_.iaudioplayr.html#pausetheme","classes":"tsd-kind-method tsd-parent-kind-interface","parent":"\"IAudioPlayr\".IAudioPlayr"},{"id":35,"kind":2048,"name":"resumeTheme","url":"interfaces/_iaudioplayr_.iaudioplayr.html#resumetheme","classes":"tsd-kind-method tsd-parent-kind-interface","parent":"\"IAudioPlayr\".IAudioPlayr"},{"id":36,"kind":2048,"name":"clearAll","url":"interfaces/_iaudioplayr_.iaudioplayr.html#clearall","classes":"tsd-kind-method tsd-parent-kind-interface","parent":"\"IAudioPlayr\".IAudioPlayr"},{"id":37,"kind":2048,"name":"clearTheme","url":"interfaces/_iaudioplayr_.iaudioplayr.html#cleartheme","classes":"tsd-kind-method tsd-parent-kind-interface","parent":"\"IAudioPlayr\".IAudioPlayr"},{"id":38,"kind":2048,"name":"playLocal","url":"interfaces/_iaudioplayr_.iaudioplayr.html#playlocal","classes":"tsd-kind-method tsd-parent-kind-interface","parent":"\"IAudioPlayr\".IAudioPlayr"},{"id":39,"kind":2048,"name":"playTheme","url":"interfaces/_iaudioplayr_.iaudioplayr.html#playtheme","classes":"tsd-kind-method tsd-parent-kind-interface","parent":"\"IAudioPlayr\".IAudioPlayr"},{"id":40,"kind":2048,"name":"playThemePrefixed","url":"interfaces/_iaudioplayr_.iaudioplayr.html#playthemeprefixed","classes":"tsd-kind-method tsd-parent-kind-interface","parent":"\"IAudioPlayr\".IAudioPlayr"},{"id":41,"kind":2048,"name":"addEventListener","url":"interfaces/_iaudioplayr_.iaudioplayr.html#addeventlistener","classes":"tsd-kind-method tsd-parent-kind-interface","parent":"\"IAudioPlayr\".IAudioPlayr"},{"id":42,"kind":2048,"name":"removeEventListeners","url":"interfaces/_iaudioplayr_.iaudioplayr.html#removeeventlisteners","classes":"tsd-kind-method tsd-parent-kind-interface","parent":"\"IAudioPlayr\".IAudioPlayr"},{"id":43,"kind":2048,"name":"addEventImmediate","url":"interfaces/_iaudioplayr_.iaudioplayr.html#addeventimmediate","classes":"tsd-kind-method tsd-parent-kind-interface","parent":"\"IAudioPlayr\".IAudioPlayr"},{"id":44,"kind":1,"name":"\"AudioPlayr\"","url":"modules/_audioplayr_.html","classes":"tsd-kind-external-module"},{"id":45,"kind":128,"name":"AudioPlayr","url":"classes/_audioplayr_.audioplayr.html","classes":"tsd-kind-class tsd-parent-kind-external-module","parent":"\"AudioPlayr\""},{"id":46,"kind":1024,"name":"library","url":"classes/_audioplayr_.audioplayr.html#library","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-private","parent":"\"AudioPlayr\".AudioPlayr"},{"id":47,"kind":1024,"name":"directories","url":"classes/_audioplayr_.audioplayr.html#directories","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-private","parent":"\"AudioPlayr\".AudioPlayr"},{"id":48,"kind":1024,"name":"fileTypes","url":"classes/_audioplayr_.audioplayr.html#filetypes","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-private","parent":"\"AudioPlayr\".AudioPlayr"},{"id":49,"kind":1024,"name":"sounds","url":"classes/_audioplayr_.audioplayr.html#sounds","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-private","parent":"\"AudioPlayr\".AudioPlayr"},{"id":50,"kind":1024,"name":"theme","url":"classes/_audioplayr_.audioplayr.html#theme","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-private","parent":"\"AudioPlayr\".AudioPlayr"},{"id":51,"kind":1024,"name":"themeName","url":"classes/_audioplayr_.audioplayr.html#themename","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-private","parent":"\"AudioPlayr\".AudioPlayr"},{"id":52,"kind":1024,"name":"directory","url":"classes/_audioplayr_.audioplayr.html#directory","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-private","parent":"\"AudioPlayr\".AudioPlayr"},{"id":53,"kind":1024,"name":"getVolumeLocal","url":"classes/_audioplayr_.audioplayr.html#getvolumelocal","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-private","parent":"\"AudioPlayr\".AudioPlayr"},{"id":54,"kind":1024,"name":"getThemeDefault","url":"classes/_audioplayr_.audioplayr.html#getthemedefault","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-private","parent":"\"AudioPlayr\".AudioPlayr"},{"id":55,"kind":1024,"name":"ItemsHolder","url":"classes/_audioplayr_.audioplayr.html#itemsholder","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-private","parent":"\"AudioPlayr\".AudioPlayr"},{"id":56,"kind":512,"name":"constructor","url":"classes/_audioplayr_.audioplayr.html#constructor","classes":"tsd-kind-constructor tsd-parent-kind-class","parent":"\"AudioPlayr\".AudioPlayr"},{"id":57,"kind":2048,"name":"getLibrary","url":"classes/_audioplayr_.audioplayr.html#getlibrary","classes":"tsd-kind-method tsd-parent-kind-class","parent":"\"AudioPlayr\".AudioPlayr"},{"id":58,"kind":2048,"name":"getFileTypes","url":"classes/_audioplayr_.audioplayr.html#getfiletypes","classes":"tsd-kind-method tsd-parent-kind-class","parent":"\"AudioPlayr\".AudioPlayr"},{"id":59,"kind":2048,"name":"getSounds","url":"classes/_audioplayr_.audioplayr.html#getsounds","classes":"tsd-kind-method tsd-parent-kind-class","parent":"\"AudioPlayr\".AudioPlayr"},{"id":60,"kind":2048,"name":"getTheme","url":"classes/_audioplayr_.audioplayr.html#gettheme","classes":"tsd-kind-method tsd-parent-kind-class","parent":"\"AudioPlayr\".AudioPlayr"},{"id":61,"kind":2048,"name":"getThemeName","url":"classes/_audioplayr_.audioplayr.html#getthemename","classes":"tsd-kind-method tsd-parent-kind-class","parent":"\"AudioPlayr\".AudioPlayr"},{"id":62,"kind":2048,"name":"getDirectory","url":"classes/_audioplayr_.audioplayr.html#getdirectory","classes":"tsd-kind-method tsd-parent-kind-class","parent":"\"AudioPlayr\".AudioPlayr"},{"id":63,"kind":2048,"name":"getVolume","url":"classes/_audioplayr_.audioplayr.html#getvolume","classes":"tsd-kind-method tsd-parent-kind-class","parent":"\"AudioPlayr\".AudioPlayr"},{"id":64,"kind":2048,"name":"setVolume","url":"classes/_audioplayr_.audioplayr.html#setvolume","classes":"tsd-kind-method tsd-parent-kind-class","parent":"\"AudioPlayr\".AudioPlayr"},{"id":65,"kind":2048,"name":"getMuted","url":"classes/_audioplayr_.audioplayr.html#getmuted","classes":"tsd-kind-method tsd-parent-kind-class","parent":"\"AudioPlayr\".AudioPlayr"},{"id":66,"kind":2048,"name":"setMuted","url":"classes/_audioplayr_.audioplayr.html#setmuted","classes":"tsd-kind-method tsd-parent-kind-class","parent":"\"AudioPlayr\".AudioPlayr"},{"id":67,"kind":2048,"name":"toggleMuted","url":"classes/_audioplayr_.audioplayr.html#togglemuted","classes":"tsd-kind-method tsd-parent-kind-class","parent":"\"AudioPlayr\".AudioPlayr"},{"id":68,"kind":2048,"name":"setMutedOn","url":"classes/_audioplayr_.audioplayr.html#setmutedon","classes":"tsd-kind-method tsd-parent-kind-class","parent":"\"AudioPlayr\".AudioPlayr"},{"id":69,"kind":2048,"name":"setMutedOff","url":"classes/_audioplayr_.audioplayr.html#setmutedoff","classes":"tsd-kind-method tsd-parent-kind-class","parent":"\"AudioPlayr\".AudioPlayr"},{"id":70,"kind":2048,"name":"getGetVolumeLocal","url":"classes/_audioplayr_.audioplayr.html#getgetvolumelocal","classes":"tsd-kind-method tsd-parent-kind-class","parent":"\"AudioPlayr\".AudioPlayr"},{"id":71,"kind":2048,"name":"setGetVolumeLocal","url":"classes/_audioplayr_.audioplayr.html#setgetvolumelocal","classes":"tsd-kind-method tsd-parent-kind-class","parent":"\"AudioPlayr\".AudioPlayr"},{"id":72,"kind":2048,"name":"getGetThemeDefault","url":"classes/_audioplayr_.audioplayr.html#getgetthemedefault","classes":"tsd-kind-method tsd-parent-kind-class","parent":"\"AudioPlayr\".AudioPlayr"},{"id":73,"kind":2048,"name":"setGetThemeDefault","url":"classes/_audioplayr_.audioplayr.html#setgetthemedefault","classes":"tsd-kind-method tsd-parent-kind-class","parent":"\"AudioPlayr\".AudioPlayr"},{"id":74,"kind":2048,"name":"play","url":"classes/_audioplayr_.audioplayr.html#play","classes":"tsd-kind-method tsd-parent-kind-class","parent":"\"AudioPlayr\".AudioPlayr"},{"id":75,"kind":2048,"name":"pauseAll","url":"classes/_audioplayr_.audioplayr.html#pauseall","classes":"tsd-kind-method tsd-parent-kind-class","parent":"\"AudioPlayr\".AudioPlayr"},{"id":76,"kind":2048,"name":"resumeAll","url":"classes/_audioplayr_.audioplayr.html#resumeall","classes":"tsd-kind-method tsd-parent-kind-class","parent":"\"AudioPlayr\".AudioPlayr"},{"id":77,"kind":2048,"name":"pauseTheme","url":"classes/_audioplayr_.audioplayr.html#pausetheme","classes":"tsd-kind-method tsd-parent-kind-class","parent":"\"AudioPlayr\".AudioPlayr"},{"id":78,"kind":2048,"name":"resumeTheme","url":"classes/_audioplayr_.audioplayr.html#resumetheme","classes":"tsd-kind-method tsd-parent-kind-class","parent":"\"AudioPlayr\".AudioPlayr"},{"id":79,"kind":2048,"name":"clearAll","url":"classes/_audioplayr_.audioplayr.html#clearall","classes":"tsd-kind-method tsd-parent-kind-class","parent":"\"AudioPlayr\".AudioPlayr"},{"id":80,"kind":2048,"name":"clearTheme","url":"classes/_audioplayr_.audioplayr.html#cleartheme","classes":"tsd-kind-method tsd-parent-kind-class","parent":"\"AudioPlayr\".AudioPlayr"},{"id":81,"kind":2048,"name":"playLocal","url":"classes/_audioplayr_.audioplayr.html#playlocal","classes":"tsd-kind-method tsd-parent-kind-class","parent":"\"AudioPlayr\".AudioPlayr"},{"id":82,"kind":2048,"name":"playTheme","url":"classes/_audioplayr_.audioplayr.html#playtheme","classes":"tsd-kind-method tsd-parent-kind-class","parent":"\"AudioPlayr\".AudioPlayr"},{"id":83,"kind":2048,"name":"playThemePrefixed","url":"classes/_audioplayr_.audioplayr.html#playthemeprefixed","classes":"tsd-kind-method tsd-parent-kind-class","parent":"\"AudioPlayr\".AudioPlayr"},{"id":84,"kind":2048,"name":"addEventListener","url":"classes/_audioplayr_.audioplayr.html#addeventlistener","classes":"tsd-kind-method tsd-parent-kind-class","parent":"\"AudioPlayr\".AudioPlayr"},{"id":85,"kind":2048,"name":"removeEventListeners","url":"classes/_audioplayr_.audioplayr.html#removeeventlisteners","classes":"tsd-kind-method tsd-parent-kind-class","parent":"\"AudioPlayr\".AudioPlayr"},{"id":86,"kind":2048,"name":"addEventImmediate","url":"classes/_audioplayr_.audioplayr.html#addeventimmediate","classes":"tsd-kind-method tsd-parent-kind-class","parent":"\"AudioPlayr\".AudioPlayr"},{"id":87,"kind":2048,"name":"soundFinish","url":"classes/_audioplayr_.audioplayr.html#soundfinish","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-private","parent":"\"AudioPlayr\".AudioPlayr"},{"id":88,"kind":2048,"name":"soundStop","url":"classes/_audioplayr_.audioplayr.html#soundstop","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-private","parent":"\"AudioPlayr\".AudioPlayr"},{"id":89,"kind":2048,"name":"preloadLibraryFromSettings","url":"classes/_audioplayr_.audioplayr.html#preloadlibraryfromsettings","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-private","parent":"\"AudioPlayr\".AudioPlayr"},{"id":90,"kind":2048,"name":"createAudio","url":"classes/_audioplayr_.audioplayr.html#createaudio","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-private","parent":"\"AudioPlayr\".AudioPlayr"},{"id":91,"kind":2048,"name":"playSound","url":"classes/_audioplayr_.audioplayr.html#playsound","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-private","parent":"\"AudioPlayr\".AudioPlayr"},{"id":92,"kind":2048,"name":"pauseSound","url":"classes/_audioplayr_.audioplayr.html#pausesound","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-private","parent":"\"AudioPlayr\".AudioPlayr"}]};
var typedoc = typedoc || {};typedoc.search = typedoc.search || {};typedoc.search.data = {"kinds":{"1":"External module","128":"Class","256":"Interface","512":"Constructor","1024":"Property","2048":"Method"},"rows":[{"id":0,"kind":1,"name":"\"IAudioPlayr\"","url":"modules/_iaudioplayr_.html","classes":"tsd-kind-external-module"},{"id":1,"kind":256,"name":"ILibrarySettings","url":"interfaces/_iaudioplayr_.ilibrarysettings.html","classes":"tsd-kind-interface tsd-parent-kind-external-module","parent":"\"IAudioPlayr\""},{"id":2,"kind":256,"name":"ISoundsLibrary","url":"interfaces/_iaudioplayr_.isoundslibrary.html","classes":"tsd-kind-interface tsd-parent-kind-external-module","parent":"\"IAudioPlayr\""},{"id":3,"kind":256,"name":"IDirectoriesLibrary","url":"interfaces/_iaudioplayr_.idirectorieslibrary.html","classes":"tsd-kind-interface tsd-parent-kind-external-module","parent":"\"IAudioPlayr\""},{"id":4,"kind":256,"name":"IGetVolumeLocal","url":"interfaces/_iaudioplayr_.igetvolumelocal.html","classes":"tsd-kind-interface tsd-parent-kind-external-module","parent":"\"IAudioPlayr\""},{"id":5,"kind":256,"name":"IGetThemeDefault","url":"interfaces/_iaudioplayr_.igetthemedefault.html","classes":"tsd-kind-interface tsd-parent-kind-external-module","parent":"\"IAudioPlayr\""},{"id":6,"kind":256,"name":"IAudioPlayrSettings","url":"interfaces/_iaudioplayr_.iaudioplayrsettings.html","classes":"tsd-kind-interface tsd-parent-kind-external-module","parent":"\"IAudioPlayr\""},{"id":7,"kind":1024,"name":"library","url":"interfaces/_iaudioplayr_.iaudioplayrsettings.html#library","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"\"IAudioPlayr\".IAudioPlayrSettings"},{"id":8,"kind":1024,"name":"directory","url":"interfaces/_iaudioplayr_.iaudioplayrsettings.html#directory","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"\"IAudioPlayr\".IAudioPlayrSettings"},{"id":9,"kind":1024,"name":"fileTypes","url":"interfaces/_iaudioplayr_.iaudioplayrsettings.html#filetypes","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"\"IAudioPlayr\".IAudioPlayrSettings"},{"id":10,"kind":1024,"name":"itemsHolder","url":"interfaces/_iaudioplayr_.iaudioplayrsettings.html#itemsholder","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"\"IAudioPlayr\".IAudioPlayrSettings"},{"id":11,"kind":1024,"name":"getThemeDefault","url":"interfaces/_iaudioplayr_.iaudioplayrsettings.html#getthemedefault","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"\"IAudioPlayr\".IAudioPlayrSettings"},{"id":12,"kind":1024,"name":"getVolumeLocal","url":"interfaces/_iaudioplayr_.iaudioplayrsettings.html#getvolumelocal","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"\"IAudioPlayr\".IAudioPlayrSettings"},{"id":13,"kind":256,"name":"IAudioPlayr","url":"interfaces/_iaudioplayr_.iaudioplayr.html","classes":"tsd-kind-interface tsd-parent-kind-external-module","parent":"\"IAudioPlayr\""},{"id":14,"kind":2048,"name":"getLibrary","url":"interfaces/_iaudioplayr_.iaudioplayr.html#getlibrary","classes":"tsd-kind-method tsd-parent-kind-interface","parent":"\"IAudioPlayr\".IAudioPlayr"},{"id":15,"kind":2048,"name":"getFileTypes","url":"interfaces/_iaudioplayr_.iaudioplayr.html#getfiletypes","classes":"tsd-kind-method tsd-parent-kind-interface","parent":"\"IAudioPlayr\".IAudioPlayr"},{"id":16,"kind":2048,"name":"getSounds","url":"interfaces/_iaudioplayr_.iaudioplayr.html#getsounds","classes":"tsd-kind-method tsd-parent-kind-interface","parent":"\"IAudioPlayr\".IAudioPlayr"},{"id":17,"kind":2048,"name":"getTheme","url":"interfaces/_iaudioplayr_.iaudioplayr.html#gettheme","classes":"tsd-kind-method tsd-parent-kind-interface","parent":"\"IAudioPlayr\".IAudioPlayr"},{"id":18,"kind":2048,"name":"getThemeName","url":"interfaces/_iaudioplayr_.iaudioplayr.html#getthemename","classes":"tsd-kind-method tsd-parent-kind-interface","parent":"\"IAudioPlayr\".IAudioPlayr"},{"id":19,"kind":2048,"name":"getDirectory","url":"interfaces/_iaudioplayr_.iaudioplayr.html#getdirectory","classes":"tsd-kind-method tsd-parent-kind-interface","parent":"\"IAudioPlayr\".IAudioPlayr"},{"id":20,"kind":2048,"name":"getVolume","url":"interfaces/_iaudioplayr_.iaudioplayr.html#getvolume","classes":"tsd-kind-method tsd-parent-kind-interface","parent":"\"IAudioPlayr\".IAudioPlayr"},{"id":21,"kind":2048,"name":"setVolume","url":"interfaces/_iaudioplayr_.iaudioplayr.html#setvolume","classes":"tsd-kind-method tsd-parent-kind-interface","parent":"\"IAudioPlayr\".IAudioPlayr"},{"id":22,"kind":2048,"name":"getMuted","url":"interfaces/_iaudioplayr_.iaudioplayr.html#getmuted","classes":"tsd-kind-method tsd-parent-kind-interface","parent":"\"IAudioPlayr\".IAudioPlayr"},{"id":23,"kind":2048,"name":"setMuted","url":"interfaces/_iaudioplayr_.iaudioplayr.html#setmuted","classes":"tsd-kind-method tsd-parent-kind-interface","parent":"\"IAudioPlayr\".IAudioPlayr"},{"id":24,"kind":2048,"name":"toggleMuted","url":"interfaces/_iaudioplayr_.iaudioplayr.html#togglemuted","classes":"tsd-kind-method tsd-parent-kind-interface","parent":"\"IAudioPlayr\".IAudioPlayr"},{"id":25,"kind":2048,"name":"setMutedOn","url":"interfaces/_iaudioplayr_.iaudioplayr.html#setmutedon","classes":"tsd-kind-method tsd-parent-kind-interface","parent":"\"IAudioPlayr\".IAudioPlayr"},{"id":26,"kind":2048,"name":"setMutedOff","url":"interfaces/_iaudioplayr_.iaudioplayr.html#setmutedoff","classes":"tsd-kind-method tsd-parent-kind-interface","parent":"\"IAudioPlayr\".IAudioPlayr"},{"id":27,"kind":2048,"name":"getGetVolumeLocal","url":"interfaces/_iaudioplayr_.iaudioplayr.html#getgetvolumelocal","classes":"tsd-kind-method tsd-parent-kind-interface","parent":"\"IAudioPlayr\".IAudioPlayr"},{"id":28,"kind":2048,"name":"setGetVolumeLocal","url":"interfaces/_iaudioplayr_.iaudioplayr.html#setgetvolumelocal","classes":"tsd-kind-method tsd-parent-kind-interface","parent":"\"IAudioPlayr\".IAudioPlayr"},{"id":29,"kind":2048,"name":"getGetThemeDefault","url":"interfaces/_iaudioplayr_.iaudioplayr.html#getgetthemedefault","classes":"tsd-kind-method tsd-parent-kind-interface","parent":"\"IAudioPlayr\".IAudioPlayr"},{"id":30,"kind":2048,"name":"setGetThemeDefault","url":"interfaces/_iaudioplayr_.iaudioplayr.html#setgetthemedefault","classes":"tsd-kind-method tsd-parent-kind-interface","parent":"\"IAudioPlayr\".IAudioPlayr"},{"id":31,"kind":2048,"name":"play","url":"interfaces/_iaudioplayr_.iaudioplayr.html#play","classes":"tsd-kind-method tsd-parent-kind-interface","parent":"\"IAudioPlayr\".IAudioPlayr"},{"id":32,"kind":2048,"name":"pauseAll","url":"interfaces/_iaudioplayr_.iaudioplayr.html#pauseall","classes":"tsd-kind-method tsd-parent-kind-interface","parent":"\"IAudioPlayr\".IAudioPlayr"},{"id":33,"kind":2048,"name":"resumeAll","url":"interfaces/_iaudioplayr_.iaudioplayr.html#resumeall","classes":"tsd-kind-method tsd-parent-kind-interface","parent":"\"IAudioPlayr\".IAudioPlayr"},{"id":34,"kind":2048,"name":"pauseTheme","url":"interfaces/_iaudioplayr_.iaudioplayr.html#pausetheme","classes":"tsd-kind-method tsd-parent-kind-interface","parent":"\"IAudioPlayr\".IAudioPlayr"},{"id":35,"kind":2048,"name":"resumeTheme","url":"interfaces/_iaudioplayr_.iaudioplayr.html#resumetheme","classes":"tsd-kind-method tsd-parent-kind-interface","parent":"\"IAudioPlayr\".IAudioPlayr"},{"id":36,"kind":2048,"name":"clearAll","url":"interfaces/_iaudioplayr_.iaudioplayr.html#clearall","classes":"tsd-kind-method tsd-parent-kind-interface","parent":"\"IAudioPlayr\".IAudioPlayr"},{"id":37,"kind":2048,"name":"clearTheme","url":"interfaces/_iaudioplayr_.iaudioplayr.html#cleartheme","classes":"tsd-kind-method tsd-parent-kind-interface","parent":"\"IAudioPlayr\".IAudioPlayr"},{"id":38,"kind":2048,"name":"playLocal","url":"interfaces/_iaudioplayr_.iaudioplayr.html#playlocal","classes":"tsd-kind-method tsd-parent-kind-interface","parent":"\"IAudioPlayr\".IAudioPlayr"},{"id":39,"kind":2048,"name":"playTheme","url":"interfaces/_iaudioplayr_.iaudioplayr.html#playtheme","classes":"tsd-kind-method tsd-parent-kind-interface","parent":"\"IAudioPlayr\".IAudioPlayr"},{"id":40,"kind":2048,"name":"playThemePrefixed","url":"interfaces/_iaudioplayr_.iaudioplayr.html#playthemeprefixed","classes":"tsd-kind-method tsd-parent-kind-interface","parent":"\"IAudioPlayr\".IAudioPlayr"},{"id":41,"kind":2048,"name":"addEventListener","url":"interfaces/_iaudioplayr_.iaudioplayr.html#addeventlistener","classes":"tsd-kind-method tsd-parent-kind-interface","parent":"\"IAudioPlayr\".IAudioPlayr"},{"id":42,"kind":2048,"name":"removeEventListeners","url":"interfaces/_iaudioplayr_.iaudioplayr.html#removeeventlisteners","classes":"tsd-kind-method tsd-parent-kind-interface","parent":"\"IAudioPlayr\".IAudioPlayr"},{"id":43,"kind":2048,"name":"addEventImmediate","url":"interfaces/_iaudioplayr_.iaudioplayr.html#addeventimmediate","classes":"tsd-kind-method tsd-parent-kind-interface","parent":"\"IAudioPlayr\".IAudioPlayr"},{"id":44,"kind":1,"name":"\"AudioPlayr\"","url":"modules/_audioplayr_.html","classes":"tsd-kind-external-module"},{"id":45,"kind":128,"name":"AudioPlayr","url":"classes/_audioplayr_.audioplayr.html","classes":"tsd-kind-class tsd-parent-kind-external-module","parent":"\"AudioPlayr\""},{"id":46,"kind":1024,"name":"library","url":"classes/_audioplayr_.audioplayr.html#library","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-private","parent":"\"AudioPlayr\".AudioPlayr"},{"id":47,"kind":1024,"name":"directories","url":"classes/_audioplayr_.audioplayr.html#directories","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-private","parent":"\"AudioPlayr\".AudioPlayr"},{"id":48,"kind":1024,"name":"fileTypes","url":"classes/_audioplayr_.audioplayr.html#filetypes","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-private","parent":"\"AudioPlayr\".AudioPlayr"},{"id":49,"kind":1024,"name":"sounds","url":"classes/_audioplayr_.audioplayr.html#sounds","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-private","parent":"\"AudioPlayr\".AudioPlayr"},{"id":50,"kind":1024,"name":"theme","url":"classes/_audioplayr_.audioplayr.html#theme","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-private","parent":"\"AudioPlayr\".AudioPlayr"},{"id":51,"kind":1024,"name":"themeName","url":"classes/_audioplayr_.audioplayr.html#themename","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-private","parent":"\"AudioPlayr\".AudioPlayr"},{"id":52,"kind":1024,"name":"directory","url":"classes/_audioplayr_.audioplayr.html#directory","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-private","parent":"\"AudioPlayr\".AudioPlayr"},{"id":53,"kind":1024,"name":"getVolumeLocal","url":"classes/_audioplayr_.audioplayr.html#getvolumelocal","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-private","parent":"\"AudioPlayr\".AudioPlayr"},{"id":54,"kind":1024,"name":"getThemeDefault","url":"classes/_audioplayr_.audioplayr.html#getthemedefault","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-private","parent":"\"AudioPlayr\".AudioPlayr"},{"id":55,"kind":1024,"name":"itemsHolder","url":"classes/_audioplayr_.audioplayr.html#itemsholder","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-private","parent":"\"AudioPlayr\".AudioPlayr"},{"id":56,"kind":512,"name":"constructor","url":"classes/_audioplayr_.audioplayr.html#constructor","classes":"tsd-kind-constructor tsd-parent-kind-class","parent":"\"AudioPlayr\".AudioPlayr"},{"id":57,"kind":2048,"name":"getLibrary","url":"classes/_audioplayr_.audioplayr.html#getlibrary","classes":"tsd-kind-method tsd-parent-kind-class","parent":"\"AudioPlayr\".AudioPlayr"},{"id":58,"kind":2048,"name":"getFileTypes","url":"classes/_audioplayr_.audioplayr.html#getfiletypes","classes":"tsd-kind-method tsd-parent-kind-class","parent":"\"AudioPlayr\".AudioPlayr"},{"id":59,"kind":2048,"name":"getSounds","url":"classes/_audioplayr_.audioplayr.html#getsounds","classes":"tsd-kind-method tsd-parent-kind-class","parent":"\"AudioPlayr\".AudioPlayr"},{"id":60,"kind":2048,"name":"getTheme","url":"classes/_audioplayr_.audioplayr.html#gettheme","classes":"tsd-kind-method tsd-parent-kind-class","parent":"\"AudioPlayr\".AudioPlayr"},{"id":61,"kind":2048,"name":"getThemeName","url":"classes/_audioplayr_.audioplayr.html#getthemename","classes":"tsd-kind-method tsd-parent-kind-class","parent":"\"AudioPlayr\".AudioPlayr"},{"id":62,"kind":2048,"name":"getDirectory","url":"classes/_audioplayr_.audioplayr.html#getdirectory","classes":"tsd-kind-method tsd-parent-kind-class","parent":"\"AudioPlayr\".AudioPlayr"},{"id":63,"kind":2048,"name":"getVolume","url":"classes/_audioplayr_.audioplayr.html#getvolume","classes":"tsd-kind-method tsd-parent-kind-class","parent":"\"AudioPlayr\".AudioPlayr"},{"id":64,"kind":2048,"name":"setVolume","url":"classes/_audioplayr_.audioplayr.html#setvolume","classes":"tsd-kind-method tsd-parent-kind-class","parent":"\"AudioPlayr\".AudioPlayr"},{"id":65,"kind":2048,"name":"getMuted","url":"classes/_audioplayr_.audioplayr.html#getmuted","classes":"tsd-kind-method tsd-parent-kind-class","parent":"\"AudioPlayr\".AudioPlayr"},{"id":66,"kind":2048,"name":"setMuted","url":"classes/_audioplayr_.audioplayr.html#setmuted","classes":"tsd-kind-method tsd-parent-kind-class","parent":"\"AudioPlayr\".AudioPlayr"},{"id":67,"kind":2048,"name":"toggleMuted","url":"classes/_audioplayr_.audioplayr.html#togglemuted","classes":"tsd-kind-method tsd-parent-kind-class","parent":"\"AudioPlayr\".AudioPlayr"},{"id":68,"kind":2048,"name":"setMutedOn","url":"classes/_audioplayr_.audioplayr.html#setmutedon","classes":"tsd-kind-method tsd-parent-kind-class","parent":"\"AudioPlayr\".AudioPlayr"},{"id":69,"kind":2048,"name":"setMutedOff","url":"classes/_audioplayr_.audioplayr.html#setmutedoff","classes":"tsd-kind-method tsd-parent-kind-class","parent":"\"AudioPlayr\".AudioPlayr"},{"id":70,"kind":2048,"name":"getGetVolumeLocal","url":"classes/_audioplayr_.audioplayr.html#getgetvolumelocal","classes":"tsd-kind-method tsd-parent-kind-class","parent":"\"AudioPlayr\".AudioPlayr"},{"id":71,"kind":2048,"name":"setGetVolumeLocal","url":"classes/_audioplayr_.audioplayr.html#setgetvolumelocal","classes":"tsd-kind-method tsd-parent-kind-class","parent":"\"AudioPlayr\".AudioPlayr"},{"id":72,"kind":2048,"name":"getGetThemeDefault","url":"classes/_audioplayr_.audioplayr.html#getgetthemedefault","classes":"tsd-kind-method tsd-parent-kind-class","parent":"\"AudioPlayr\".AudioPlayr"},{"id":73,"kind":2048,"name":"setGetThemeDefault","url":"classes/_audioplayr_.audioplayr.html#setgetthemedefault","classes":"tsd-kind-method tsd-parent-kind-class","parent":"\"AudioPlayr\".AudioPlayr"},{"id":74,"kind":2048,"name":"play","url":"classes/_audioplayr_.audioplayr.html#play","classes":"tsd-kind-method tsd-parent-kind-class","parent":"\"AudioPlayr\".AudioPlayr"},{"id":75,"kind":2048,"name":"pauseAll","url":"classes/_audioplayr_.audioplayr.html#pauseall","classes":"tsd-kind-method tsd-parent-kind-class","parent":"\"AudioPlayr\".AudioPlayr"},{"id":76,"kind":2048,"name":"resumeAll","url":"classes/_audioplayr_.audioplayr.html#resumeall","classes":"tsd-kind-method tsd-parent-kind-class","parent":"\"AudioPlayr\".AudioPlayr"},{"id":77,"kind":2048,"name":"pauseTheme","url":"classes/_audioplayr_.audioplayr.html#pausetheme","classes":"tsd-kind-method tsd-parent-kind-class","parent":"\"AudioPlayr\".AudioPlayr"},{"id":78,"kind":2048,"name":"resumeTheme","url":"classes/_audioplayr_.audioplayr.html#resumetheme","classes":"tsd-kind-method tsd-parent-kind-class","parent":"\"AudioPlayr\".AudioPlayr"},{"id":79,"kind":2048,"name":"clearAll","url":"classes/_audioplayr_.audioplayr.html#clearall","classes":"tsd-kind-method tsd-parent-kind-class","parent":"\"AudioPlayr\".AudioPlayr"},{"id":80,"kind":2048,"name":"clearTheme","url":"classes/_audioplayr_.audioplayr.html#cleartheme","classes":"tsd-kind-method tsd-parent-kind-class","parent":"\"AudioPlayr\".AudioPlayr"},{"id":81,"kind":2048,"name":"playLocal","url":"classes/_audioplayr_.audioplayr.html#playlocal","classes":"tsd-kind-method tsd-parent-kind-class","parent":"\"AudioPlayr\".AudioPlayr"},{"id":82,"kind":2048,"name":"playTheme","url":"classes/_audioplayr_.audioplayr.html#playtheme","classes":"tsd-kind-method tsd-parent-kind-class","parent":"\"AudioPlayr\".AudioPlayr"},{"id":83,"kind":2048,"name":"playThemePrefixed","url":"classes/_audioplayr_.audioplayr.html#playthemeprefixed","classes":"tsd-kind-method tsd-parent-kind-class","parent":"\"AudioPlayr\".AudioPlayr"},{"id":84,"kind":2048,"name":"addEventListener","url":"classes/_audioplayr_.audioplayr.html#addeventlistener","classes":"tsd-kind-method tsd-parent-kind-class","parent":"\"AudioPlayr\".AudioPlayr"},{"id":85,"kind":2048,"name":"removeEventListeners","url":"classes/_audioplayr_.audioplayr.html#removeeventlisteners","classes":"tsd-kind-method tsd-parent-kind-class","parent":"\"AudioPlayr\".AudioPlayr"},{"id":86,"kind":2048,"name":"addEventImmediate","url":"classes/_audioplayr_.audioplayr.html#addeventimmediate","classes":"tsd-kind-method tsd-parent-kind-class","parent":"\"AudioPlayr\".AudioPlayr"},{"id":87,"kind":2048,"name":"soundFinish","url":"classes/_audioplayr_.audioplayr.html#soundfinish","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-private","parent":"\"AudioPlayr\".AudioPlayr"},{"id":88,"kind":2048,"name":"soundStop","url":"classes/_audioplayr_.audioplayr.html#soundstop","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-private","parent":"\"AudioPlayr\".AudioPlayr"},{"id":89,"kind":2048,"name":"preloadLibraryFromSettings","url":"classes/_audioplayr_.audioplayr.html#preloadlibraryfromsettings","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-private","parent":"\"AudioPlayr\".AudioPlayr"},{"id":90,"kind":2048,"name":"createAudio","url":"classes/_audioplayr_.audioplayr.html#createaudio","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-private","parent":"\"AudioPlayr\".AudioPlayr"},{"id":91,"kind":2048,"name":"playSound","url":"classes/_audioplayr_.audioplayr.html#playsound","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-private","parent":"\"AudioPlayr\".AudioPlayr"},{"id":92,"kind":2048,"name":"pauseSound","url":"classes/_audioplayr_.audioplayr.html#pausesound","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-private","parent":"\"AudioPlayr\".AudioPlayr"}]};

@@ -45,3 +45,3 @@ import { IAudioPlayr, IAudioPlayrSettings } from "./IAudioPlayr";

*/
private ItemsHolder;
private itemsHolder;
/**

@@ -48,0 +48,0 @@ * Initializes a new instance of the AudioPlayr class.

@@ -1,2 +0,2 @@

define(["require","exports"],function(e,t){"use strict";var o=function(){function e(e){if("undefined"==typeof e.library)throw new Error("No library given to AudioPlayr.");if("undefined"==typeof e.directory)throw new Error("No directory given to AudioPlayr.");if("undefined"==typeof e.fileTypes)throw new Error("No fileTypes given to AudioPlayr.");if(!e.ItemsHolder)throw new Error("No ItemsHoldr given to AudioPlayr.");this.ItemsHolder=e.ItemsHolder,this.directory=e.directory,this.fileTypes=e.fileTypes,this.getThemeDefault=e.getThemeDefault||"Theme",this.getVolumeLocal="undefined"==typeof e.getVolumeLocal?1:e.getVolumeLocal,this.sounds={},this.preloadLibraryFromSettings(e.library);var t=this.ItemsHolder.getItem("volume");void 0===t?this.setVolume(1):this.setVolume(t),this.setMuted(this.ItemsHolder.getItem("muted")||!1)}return e.prototype.getLibrary=function(){return this.library},e.prototype.getFileTypes=function(){return this.fileTypes},e.prototype.getSounds=function(){return this.sounds},e.prototype.getTheme=function(){return this.theme},e.prototype.getThemeName=function(){return this.themeName},e.prototype.getDirectory=function(){return this.directory},e.prototype.getVolume=function(){return parseFloat(this.ItemsHolder.getItem("volume"))||1},e.prototype.setVolume=function(e){if(!this.getMuted())for(var t in this.sounds)this.sounds.hasOwnProperty(t)&&(this.sounds[t].volume=Number(this.sounds[t].getAttribute("volumeReal"))*e);this.ItemsHolder.setItem("volume",e.toString())},e.prototype.getMuted=function(){return Boolean(Number(this.ItemsHolder.getItem("muted")))},e.prototype.setMuted=function(e){e?this.setMutedOn():this.setMutedOff()},e.prototype.toggleMuted=function(){this.setMuted(!this.getMuted())},e.prototype.setMutedOn=function(){for(var e in this.sounds)this.sounds.hasOwnProperty(e)&&(this.sounds[e].volume=0);this.ItemsHolder.setItem("muted","1")},e.prototype.setMutedOff=function(){var e=this.getVolume();for(var t in this.sounds)if(this.sounds.hasOwnProperty(t)){var o=this.sounds[t];o.volume=Number(o.getAttribute("volumeReal"))*e}this.ItemsHolder.setItem("muted","0")},e.prototype.getGetVolumeLocal=function(){return this.getVolumeLocal},e.prototype.setGetVolumeLocal=function(e){this.getVolumeLocal=e},e.prototype.getGetThemeDefault=function(){return this.getThemeDefault},e.prototype.setGetThemeDefault=function(e){this.getThemeDefault=e},e.prototype.play=function(e){var t;if(this.sounds.hasOwnProperty(e))t=this.sounds[e];else{if(!this.library.hasOwnProperty(e))throw new Error("Unknown name given to AudioPlayr.play: '"+e+"'.");t=this.sounds[e]=this.library[e]}this.soundStop(t),this.getMuted()?t.volume=0:(t.setAttribute("volumeReal","1"),t.volume=this.getVolume()),setTimeout(this.playSound.bind(this),1,t);var o=parseFloat(t.getAttribute("used")||"");return o||(t.setAttribute("used",(o+1).toString()),t.addEventListener("ended",this.soundFinish.bind(this,e))),t.setAttribute("name",e),t},e.prototype.pauseAll=function(){for(var e in this.sounds)this.sounds.hasOwnProperty(e)&&this.pauseSound(this.sounds[e])},e.prototype.resumeAll=function(){for(var e in this.sounds)this.sounds.hasOwnProperty(e)&&this.playSound(this.sounds[e])},e.prototype.pauseTheme=function(){this.theme&&this.pauseSound(this.theme)},e.prototype.resumeTheme=function(){this.theme&&this.playSound(this.theme)},e.prototype.clearAll=function(){this.pauseAll(),this.clearTheme(),this.sounds={}},e.prototype.clearTheme=function(){this.theme&&(this.pauseTheme(),delete this.sounds[this.theme.getAttribute("name")],this.theme=void 0,this.themeName=void 0)},e.prototype.playLocal=function(e,t){var o=this.play(e),s=this.getVolumeLocal instanceof Function?this.getVolumeLocal(t):this.getVolumeLocal;return o.setAttribute("volumeReal",s.toString()),this.getMuted()?o.volume=0:o.volume=s*this.getVolume(),o},e.prototype.playTheme=function(e,t){return void 0===t&&(t=!0),this.pauseTheme(),"undefined"==typeof e&&(e=this.getThemeDefault instanceof Function?this.getThemeDefault():this.getThemeDefault),"undefined"!=typeof this.theme&&this.theme.hasAttribute("name")&&delete this.sounds[this.theme.getAttribute("name")],this.themeName=e,this.theme=this.sounds[e]=this.play(e),this.theme.loop=t,"1"===this.theme.getAttribute("used")&&this.theme.addEventListener("ended",this.playTheme.bind(this)),this.theme},e.prototype.playThemePrefixed=function(e,t,o){var s=this.play(e);return this.pauseTheme(),"undefined"==typeof t&&(t=this.getThemeDefault instanceof Function?this.getThemeDefault():this.getThemeDefault),this.addEventListener(e,"ended",this.playTheme.bind(this,t,o)),s},e.prototype.addEventListener=function(e,t,o){var s=this.library[e];if(!s)throw new Error("Unknown name given to addEventListener: '"+e+"'.");s.addedEvents||(s.addedEvents={}),s.addedEvents[t]?s.addedEvents[t].push(o):s.addedEvents[t]=[o],s.addEventListener(t,o)},e.prototype.removeEventListeners=function(e,t){var o=this.library[e];if(!o)throw new Error("Unknown name given to removeEventListeners: '"+e+"'.");if(o.addedEvents){var s=o.addedEvents[t];if(s){for(var i=0;i<s.length;i+=1)o.removeEventListener(t,s[i]);s.length=0}}},e.prototype.addEventImmediate=function(e,t,o){return!this.sounds.hasOwnProperty(e)||this.sounds[e].paused?void o():void this.sounds[e].addEventListener(t,o)},e.prototype.soundFinish=function(e){this.sounds.hasOwnProperty(e)&&delete this.sounds[e]},e.prototype.soundStop=function(e){this.pauseSound(e),e.readyState&&(e.currentTime=0)},e.prototype.preloadLibraryFromSettings=function(e){this.library={},this.directories={};for(var t in e)if(e.hasOwnProperty(t)){for(var o={},s=e[t],i=0,r=s;i<r.length;i++){var n=r[i];this.library[n]=o[n]=this.createAudio(n,t)}this.directories[t]=o}},e.prototype.createAudio=function(e,t){for(var o=document.createElement("audio"),s=0,i=this.fileTypes;s<i.length;s++){var r=i[s],n=document.createElement("source");n.type="audio/"+r,n.src=this.directory+"/"+t+"/"+r+"/"+e+"."+r,o.appendChild(n)}return o.volume=0,o.setAttribute("volumeReal","1"),o.setAttribute("used","0"),this.playSound(o),o},e.prototype.playSound=function(e){return!(!e||!e.play)&&(e.play(),!0)},e.prototype.pauseSound=function(e){return!(!e||!e.pause)&&(e.pause(),!0)},e}();t.AudioPlayr=o});
define(["require","exports"],function(t,e){"use strict";var o=function(){function t(t){if(!t.itemsHolder)throw new Error("No ItemsHoldr given to AudioPlayr.");this.itemsHolder=t.itemsHolder,this.directory=t.directory||"audio",this.fileTypes=t.fileTypes||["mp3"],this.getThemeDefault=t.getThemeDefault||"Theme",this.getVolumeLocal=void 0===t.getVolumeLocal?1:t.getVolumeLocal,this.sounds={},this.preloadLibraryFromSettings(t.library||{});var e=this.itemsHolder.getItem("volume");void 0===e?this.setVolume(1):this.setVolume(e),this.setMuted(this.itemsHolder.getItem("muted")||!1)}return t.prototype.getLibrary=function(){return this.library},t.prototype.getFileTypes=function(){return this.fileTypes},t.prototype.getSounds=function(){return this.sounds},t.prototype.getTheme=function(){return this.theme},t.prototype.getThemeName=function(){return this.themeName},t.prototype.getDirectory=function(){return this.directory},t.prototype.getVolume=function(){return parseFloat(this.itemsHolder.getItem("volume"))||1},t.prototype.setVolume=function(t){if(!this.getMuted())for(var e in this.sounds)this.sounds.hasOwnProperty(e)&&(this.sounds[e].volume=parseFloat(this.sounds[e].getAttribute("volumeReal")||"")*t);this.itemsHolder.setItem("volume",t.toString())},t.prototype.getMuted=function(){return!!parseFloat(this.itemsHolder.getItem("muted"))},t.prototype.setMuted=function(t){t?this.setMutedOn():this.setMutedOff()},t.prototype.toggleMuted=function(){this.setMuted(!this.getMuted())},t.prototype.setMutedOn=function(){for(var t in this.sounds)this.sounds.hasOwnProperty(t)&&(this.sounds[t].volume=0);this.itemsHolder.setItem("muted","1")},t.prototype.setMutedOff=function(){var t=this.getVolume();for(var e in this.sounds)if(this.sounds.hasOwnProperty(e)){var o=this.sounds[e];o.volume=parseFloat(o.getAttribute("volumeReal")||"")*t}this.itemsHolder.setItem("muted","0")},t.prototype.getGetVolumeLocal=function(){return this.getVolumeLocal},t.prototype.setGetVolumeLocal=function(t){this.getVolumeLocal=t},t.prototype.getGetThemeDefault=function(){return this.getThemeDefault},t.prototype.setGetThemeDefault=function(t){this.getThemeDefault=t},t.prototype.play=function(t){var e;if(this.sounds.hasOwnProperty(t))e=this.sounds[t];else{if(!this.library.hasOwnProperty(t))throw new Error("Unknown name given to AudioPlayr.play: '"+t+"'.");e=this.sounds[t]=this.library[t]}this.soundStop(e),this.getMuted()?e.volume=0:(e.setAttribute("volumeReal","1"),e.volume=this.getVolume()),setTimeout(this.playSound.bind(this),1,e);var o=parseFloat(e.getAttribute("used")||"");return o||(e.setAttribute("used",(o+1).toString()),e.addEventListener("ended",this.soundFinish.bind(this,t))),e.setAttribute("name",t),e},t.prototype.pauseAll=function(){for(var t in this.sounds)this.sounds.hasOwnProperty(t)&&this.pauseSound(this.sounds[t])},t.prototype.resumeAll=function(){for(var t in this.sounds)this.sounds.hasOwnProperty(t)&&this.playSound(this.sounds[t])},t.prototype.pauseTheme=function(){this.theme&&this.pauseSound(this.theme)},t.prototype.resumeTheme=function(){this.theme&&this.playSound(this.theme)},t.prototype.clearAll=function(){this.pauseAll(),this.clearTheme(),this.sounds={}},t.prototype.clearTheme=function(){this.theme&&(this.pauseTheme(),delete this.sounds[this.theme.getAttribute("name")],this.theme=void 0,this.themeName=void 0)},t.prototype.playLocal=function(t,e){var o=this.play(t),s=this.getVolumeLocal instanceof Function?this.getVolumeLocal(e):this.getVolumeLocal;return o.setAttribute("volumeReal",s.toString()),this.getMuted()?o.volume=0:o.volume=s*this.getVolume(),o},t.prototype.playTheme=function(t,e){return void 0===e&&(e=!0),this.pauseTheme(),"undefined"==typeof t&&(t=this.getThemeDefault instanceof Function?this.getThemeDefault():this.getThemeDefault),"undefined"!=typeof this.theme&&this.theme.hasAttribute("name")&&delete this.sounds[this.theme.getAttribute("name")],this.themeName=t,this.theme=this.sounds[t]=this.play(t),this.theme.loop=e,"1"===this.theme.getAttribute("used")&&this.theme.addEventListener("ended",this.playTheme.bind(this)),this.theme},t.prototype.playThemePrefixed=function(t,e,o){var s=this.play(t);return this.pauseTheme(),"undefined"==typeof e&&(e=this.getThemeDefault instanceof Function?this.getThemeDefault():this.getThemeDefault),this.addEventListener(t,"ended",this.playTheme.bind(this,e,o)),s},t.prototype.addEventListener=function(t,e,o){var s=this.library[t];if(!s)throw new Error("Unknown name given to addEventListener: '"+t+"'.");s.addedEvents||(s.addedEvents={}),s.addedEvents[e]?s.addedEvents[e].push(o):s.addedEvents[e]=[o],s.addEventListener(e,o)},t.prototype.removeEventListeners=function(t,e){var o=this.library[t];if(!o)throw new Error("Unknown name given to removeEventListeners: '"+t+"'.");if(o.addedEvents){var s=o.addedEvents[e];if(s){for(var i=0,n=s;i<n.length;i++){var r=n[i];o.removeEventListener(e,r)}s.length=0}}},t.prototype.addEventImmediate=function(t,e,o){return!this.sounds.hasOwnProperty(t)||this.sounds[t].paused?void o():void this.sounds[t].addEventListener(e,o)},t.prototype.soundFinish=function(t){this.sounds.hasOwnProperty(t)&&delete this.sounds[t]},t.prototype.soundStop=function(t){this.pauseSound(t),t.readyState&&(t.currentTime=0)},t.prototype.preloadLibraryFromSettings=function(t){this.library={},this.directories={};for(var e in t)if(t.hasOwnProperty(e)){for(var o={},s=t[e],i=0,n=s;i<n.length;i++){var r=n[i];this.library[r]=o[r]=this.createAudio(r,e)}this.directories[e]=o}},t.prototype.createAudio=function(t,e){for(var o=document.createElement("audio"),s=0,i=this.fileTypes;s<i.length;s++){var n=i[s],r=document.createElement("source");r.type="audio/"+n,r.src=this.directory+"/"+e+"/"+n+"/"+t+"."+n,o.appendChild(r)}return o.volume=0,o.setAttribute("volumeReal","1"),o.setAttribute("used","0"),this.playSound(o),o},t.prototype.playSound=function(t){return!(!t||!t.play)&&(t.play(),!0)},t.prototype.pauseSound=function(t){return!(!t||!t.pause)&&(t.pause(),!0)},t}();e.AudioPlayr=o});
//# sourceMappingURL=AudioPlayr.js.map

@@ -40,7 +40,7 @@ import { IItemsHoldr } from "itemsholdr/lib/iitemsholdr";

*/
library: ILibrarySettings;
library?: ILibrarySettings;
/**
* The directory in which all sub-directories of audio files are stored.
*/
directory: string;
directory?: string;
/**

@@ -51,7 +51,7 @@ * The allowed filetypes for each audio file. Each of these should have a

*/
fileTypes: string[];
fileTypes?: string[];
/**
* A storage container to store mute/volume status locally.
*/
ItemsHolder: IItemsHoldr;
itemsHolder: IItemsHoldr;
/**

@@ -58,0 +58,0 @@ * A String or Function to get the default theme for playTheme calls.

{
"name": "audioplayr",
"description": "An audio playback manager for persistent and on-demand themes and sounds.",
"version": "0.5.2",
"version": "0.6.0",
"author": {

@@ -18,7 +18,7 @@ "name": "Josh Goldberg",

"dependencies": {
"itemsholdr": "^0.5.2"
"itemsholdr": "0.6.X"
},
"devDependencies": {
"gulp-shenanigans": "^0.5.20"
"gulp-shenanigans": "0.6.X"
}
}
{
"dependencies": {
"ItemsHoldr": "^0.5.2"
"ItemsHoldr": "0.6.X"
},

@@ -8,4 +8,4 @@ "package": {

"name": "AudioPlayr",
"version": "0.5.1"
"version": "0.6.0"
}
}

@@ -45,3 +45,3 @@ import { IAudioPlayr, IAudioPlayrSettings } from "./IAudioPlayr";

*/
private ItemsHolder;
private itemsHolder;
/**

@@ -48,0 +48,0 @@ * Initializes a new instance of the AudioPlayr class.

@@ -60,3 +60,3 @@ import { IItemsHoldr } from "itemsholdr/lib/IItemsHoldr";

*/
private ItemsHolder: IItemsHoldr;
private itemsHolder: IItemsHoldr;

@@ -69,21 +69,12 @@ /**

public constructor(settings: IAudioPlayrSettings) {
if (typeof settings.library === "undefined") {
throw new Error("No library given to AudioPlayr.");
}
if (typeof settings.directory === "undefined") {
throw new Error("No directory given to AudioPlayr.");
}
if (typeof settings.fileTypes === "undefined") {
throw new Error("No fileTypes given to AudioPlayr.");
}
if (!settings.ItemsHolder) {
if (!settings.itemsHolder) {
throw new Error("No ItemsHoldr given to AudioPlayr.");
}
this.ItemsHolder = settings.ItemsHolder;
this.itemsHolder = settings.itemsHolder;
this.directory = settings.directory;
this.fileTypes = settings.fileTypes;
this.directory = settings.directory || "audio";
this.fileTypes = settings.fileTypes || ["mp3"];
this.getThemeDefault = settings.getThemeDefault || "Theme";
this.getVolumeLocal = typeof settings.getVolumeLocal === "undefined"
this.getVolumeLocal = settings.getVolumeLocal === undefined
? 1 : settings.getVolumeLocal;

@@ -93,5 +84,5 @@

this.preloadLibraryFromSettings(settings.library);
this.preloadLibraryFromSettings(settings.library || {});
let volumeInitial: number = this.ItemsHolder.getItem("volume");
const volumeInitial: number | undefined = this.itemsHolder.getItem("volume");
if (volumeInitial === undefined) {

@@ -103,3 +94,3 @@ this.setVolume(1);

this.setMuted(this.ItemsHolder.getItem("muted") || false);
this.setMuted(this.itemsHolder.getItem("muted") || false);
}

@@ -153,3 +144,3 @@

public getVolume(): number {
return parseFloat(this.ItemsHolder.getItem("volume")) || 1;
return parseFloat(this.itemsHolder.getItem("volume")) || 1;
}

@@ -167,3 +158,3 @@

if (this.sounds.hasOwnProperty(i)) {
this.sounds[i].volume = Number(this.sounds[i].getAttribute("volumeReal")) * volume;
this.sounds[i].volume = parseFloat(this.sounds[i].getAttribute("volumeReal") || "") * volume;
}

@@ -173,3 +164,3 @@ }

this.ItemsHolder.setItem("volume", volume.toString());
this.itemsHolder.setItem("volume", volume.toString());
}

@@ -181,3 +172,3 @@

public getMuted(): boolean {
return Boolean(Number(this.ItemsHolder.getItem("muted")));
return !!(parseFloat(this.itemsHolder.getItem("muted")));
}

@@ -212,3 +203,3 @@

this.ItemsHolder.setItem("muted", "1");
this.itemsHolder.setItem("muted", "1");
}

@@ -223,10 +214,10 @@

for (let i in this.sounds) {
for (const i in this.sounds) {
if (this.sounds.hasOwnProperty(i)) {
const sound: HTMLAudioElement = this.sounds[i];
sound.volume = Number(sound.getAttribute("volumeReal")) * volume;
sound.volume = parseFloat(sound.getAttribute("volumeReal") || "") * volume;
}
}
this.ItemsHolder.setItem("muted", "0");
this.itemsHolder.setItem("muted", "0");
}

@@ -317,3 +308,3 @@

public pauseAll(): void {
for (let i in this.sounds) {
for (const i in this.sounds) {
if (this.sounds.hasOwnProperty(i)) {

@@ -329,3 +320,3 @@ this.pauseSound(this.sounds[i]);

public resumeAll(): void {
for (let i in this.sounds) {
for (const i in this.sounds) {
if (!this.sounds.hasOwnProperty(i)) {

@@ -517,12 +508,12 @@ continue;

const events: any = sound.addedEvents[event];
if (!events) {
const addedEvents: any = sound.addedEvents[event];
if (!addedEvents) {
return;
}
for (let i: number = 0; i < events.length; i += 1) {
sound.removeEventListener(event, events[i]);
for (const addedEvent of addedEvents) {
sound.removeEventListener(event, addedEvent);
}
events.length = 0;
addedEvents.length = 0;
}

@@ -529,0 +520,0 @@

@@ -40,7 +40,7 @@ import { IItemsHoldr } from "itemsholdr/lib/iitemsholdr";

*/
library: ILibrarySettings;
library?: ILibrarySettings;
/**
* The directory in which all sub-directories of audio files are stored.
*/
directory: string;
directory?: string;
/**

@@ -51,7 +51,7 @@ * The allowed filetypes for each audio file. Each of these should have a

*/
fileTypes: string[];
fileTypes?: string[];
/**
* A storage container to store mute/volume status locally.
*/
ItemsHolder: IItemsHoldr;
itemsHolder: IItemsHoldr;
/**

@@ -58,0 +58,0 @@ * A String or Function to get the default theme for playTheme calls.

@@ -46,3 +46,3 @@ import { IItemsHoldr } from "itemsholdr/lib/iitemsholdr";

*/
library: ILibrarySettings;
library?: ILibrarySettings;

@@ -52,3 +52,3 @@ /**

*/
directory: string;
directory?: string;

@@ -60,3 +60,3 @@ /**

*/
fileTypes: string[];
fileTypes?: string[];

@@ -66,3 +66,3 @@ /**

*/
ItemsHolder: IItemsHoldr;
itemsHolder: IItemsHoldr;

@@ -163,3 +163,3 @@ /**

/**
* @returns The Function or Number used as the volume setter for local sounds.
* @returns The Function or Number used as the volume setter for local sounds.
*/

@@ -166,0 +166,0 @@ getGetVolumeLocal(): any;

@@ -30,4 +30,2 @@ define(["require", "exports", "../main", "../utils/fakes"], function (require, exports, main_1, fakes) {

var AudioPlayer = fakes.stubAudioPlayr({
directory: "Sounds",
fileTypes: ["mp3"],
library: {

@@ -42,3 +40,3 @@ Sounds: [

getThemeDefault: fakes.stubSoundName,
ItemsHolder: fakes.stubItemsHoldr()
itemsHolder: fakes.stubItemsHoldr()
});

@@ -53,4 +51,2 @@ // Act

var AudioPlayer = fakes.stubAudioPlayr({
directory: "Sounds",
fileTypes: ["mp3"],
library: {

@@ -65,3 +61,3 @@ Sounds: [

getThemeDefault: function () { return fakes.stubSoundName; },
ItemsHolder: fakes.stubItemsHoldr()
itemsHolder: fakes.stubItemsHoldr()
});

@@ -68,0 +64,0 @@ // Act

@@ -41,4 +41,2 @@ import { IAudioPlayr } from "../../src/IAudioPlayr";

const AudioPlayer: IAudioPlayr = fakes.stubAudioPlayr({
directory: "Sounds",
fileTypes: ["mp3"],
library: {

@@ -53,3 +51,3 @@ Sounds: [

getThemeDefault: fakes.stubSoundName,
ItemsHolder: fakes.stubItemsHoldr()
itemsHolder: fakes.stubItemsHoldr()
});

@@ -67,4 +65,2 @@

const AudioPlayer: IAudioPlayr = fakes.stubAudioPlayr({
directory: "Sounds",
fileTypes: ["mp3"],
library: {

@@ -79,3 +75,3 @@ Sounds: [

getThemeDefault: (): string => fakes.stubSoundName,
ItemsHolder: fakes.stubItemsHoldr()
itemsHolder: fakes.stubItemsHoldr()
});

@@ -82,0 +78,0 @@

@@ -23,3 +23,3 @@ define(["require", "exports", "itemsholdr/lib/ItemsHoldr", "../../src/AudioPlayr"], function (require, exports, ItemsHoldr_1, AudioPlayr_1) {

fileTypes: ["mp3"],
ItemsHolder: new ItemsHoldr_1.ItemsHoldr()
itemsHolder: new ItemsHoldr_1.ItemsHoldr()
};

@@ -26,0 +26,0 @@ }

@@ -27,3 +27,3 @@ import { ItemsHoldr } from "itemsholdr/lib/ItemsHoldr";

fileTypes: ["mp3"],
ItemsHolder: new ItemsHoldr()
itemsHolder: new ItemsHoldr()
};

@@ -30,0 +30,0 @@ }

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc