diff --git a/LICENSE.md b/LICENSE.md index 5a9473de..d28a792e 100644 --- a/LICENSE.md +++ b/LICENSE.md @@ -1,4 +1,4 @@ -Copyright (c) 2013-2018 James Simpson and GoldFire Studios, Inc. +Copyright (c) 2013-2019 James Simpson and GoldFire Studios, Inc. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the diff --git a/README.md b/README.md index ea3fdaf2..1df9fe6a 100644 --- a/README.md +++ b/README.md @@ -292,7 +292,7 @@ Check if a sound is currently playing or not, returns a `Boolean`. If no sound I * **id**: `Number` The sound ID to check. #### duration([id]) -Get the duration of the audio source. Will return 0 until after the `load` event fires. +Get the duration of the audio source (in seconds). Will return 0 until after the `load` event fires. * **id**: `Number` `optional` The sound ID to check. Passing an ID will return the duration of the sprite being played on this instance; otherwise, the full source duration is returned. #### on(event, function, [id]) @@ -478,6 +478,6 @@ ffmpeg -i sound1.wav -dash 1 sound1.webm ### License -Copyright (c) 2013-2018 [James Simpson](https://twitter.com/GoldFireStudios) and [GoldFire Studios, Inc.](http://goldfirestudios.com) +Copyright (c) 2013-2019 [James Simpson](https://twitter.com/GoldFireStudios) and [GoldFire Studios, Inc.](http://goldfirestudios.com) Released under the [MIT License](https://github.com/goldfire/howler.js/blob/master/LICENSE.md). diff --git a/examples/3d/js/camera.js b/examples/3d/js/camera.js index 2d1211e2..341df60d 100644 --- a/examples/3d/js/camera.js +++ b/examples/3d/js/camera.js @@ -2,7 +2,7 @@ * Howler.js 3D Sound Demo * howlerjs.com * - * (c) 2013-2018, James Simpson of GoldFire Studios + * (c) 2013-2019, James Simpson of GoldFire Studios * goldfirestudios.com * * MIT License diff --git a/examples/3d/js/controls.js b/examples/3d/js/controls.js index 928e210c..437fd4be 100644 --- a/examples/3d/js/controls.js +++ b/examples/3d/js/controls.js @@ -2,7 +2,7 @@ * Howler.js 3D Sound Demo * howlerjs.com * - * (c) 2013-2018, James Simpson of GoldFire Studios + * (c) 2013-2019, James Simpson of GoldFire Studios * goldfirestudios.com * * MIT License diff --git a/examples/3d/js/game.js b/examples/3d/js/game.js index da40af1a..5ea56e4d 100644 --- a/examples/3d/js/game.js +++ b/examples/3d/js/game.js @@ -2,7 +2,7 @@ * Howler.js 3D Sound Demo * howlerjs.com * - * (c) 2013-2018, James Simpson of GoldFire Studios + * (c) 2013-2019, James Simpson of GoldFire Studios * goldfirestudios.com * * MIT License diff --git a/examples/3d/js/map.js b/examples/3d/js/map.js index 39187370..340d537d 100644 --- a/examples/3d/js/map.js +++ b/examples/3d/js/map.js @@ -2,7 +2,7 @@ * Howler.js 3D Sound Demo * howlerjs.com * - * (c) 2013-2018, James Simpson of GoldFire Studios + * (c) 2013-2019, James Simpson of GoldFire Studios * goldfirestudios.com * * MIT License diff --git a/examples/3d/js/player.js b/examples/3d/js/player.js index d505b478..6483672b 100644 --- a/examples/3d/js/player.js +++ b/examples/3d/js/player.js @@ -2,7 +2,7 @@ * Howler.js 3D Sound Demo * howlerjs.com * - * (c) 2013-2018, James Simpson of GoldFire Studios + * (c) 2013-2019, James Simpson of GoldFire Studios * goldfirestudios.com * * MIT License diff --git a/examples/3d/js/sound.js b/examples/3d/js/sound.js index cb0ef1a8..3fcee16c 100644 --- a/examples/3d/js/sound.js +++ b/examples/3d/js/sound.js @@ -2,7 +2,7 @@ * Howler.js 3D Sound Demo * howlerjs.com * - * (c) 2013-2018, James Simpson of GoldFire Studios + * (c) 2013-2019, James Simpson of GoldFire Studios * goldfirestudios.com * * MIT License diff --git a/examples/3d/js/texture.js b/examples/3d/js/texture.js index 3a09009f..a3f687b8 100644 --- a/examples/3d/js/texture.js +++ b/examples/3d/js/texture.js @@ -2,7 +2,7 @@ * Howler.js 3D Sound Demo * howlerjs.com * - * (c) 2013-2018, James Simpson of GoldFire Studios + * (c) 2013-2019, James Simpson of GoldFire Studios * goldfirestudios.com * * MIT License diff --git a/examples/player/player.js b/examples/player/player.js index 1a672e85..b5f5c4b3 100644 --- a/examples/player/player.js +++ b/examples/player/player.js @@ -2,7 +2,7 @@ * Howler.js Audio Player Demo * howlerjs.com * - * (c) 2013-2018, James Simpson of GoldFire Studios + * (c) 2013-2019, James Simpson of GoldFire Studios * goldfirestudios.com * * MIT License diff --git a/examples/radio/radio.js b/examples/radio/radio.js index 6ef53a85..0a31355d 100644 --- a/examples/radio/radio.js +++ b/examples/radio/radio.js @@ -2,7 +2,7 @@ * Howler.js Radio Demo * howlerjs.com * - * (c) 2013-2018, James Simpson of GoldFire Studios + * (c) 2013-2019, James Simpson of GoldFire Studios * goldfirestudios.com * * MIT License diff --git a/examples/sprite/sprite.js b/examples/sprite/sprite.js index 8574c345..a8503aea 100644 --- a/examples/sprite/sprite.js +++ b/examples/sprite/sprite.js @@ -2,7 +2,7 @@ * Howler.js Audio Sprite Demo * howlerjs.com * - * (c) 2013-2018, James Simpson of GoldFire Studios + * (c) 2013-2019, James Simpson of GoldFire Studios * goldfirestudios.com * * MIT License diff --git a/package.json b/package.json index ca15609f..a4100ce0 100644 --- a/package.json +++ b/package.json @@ -22,7 +22,7 @@ "url": "git://github.com/goldfire/howler.js.git" }, "scripts": { - "build": "VERSION=`printf 'v' && node -e 'console.log(require(\"./package.json\").version)'` && sed -i '' '2s/.*/ * howler.js '\"$VERSION\"'/' src/howler.core.js && sed -i '' '4s/.*/ * howler.js '\"$VERSION\"'/' src/plugins/howler.spatial.js && uglifyjs --preamble \"/*! howler.js $VERSION | (c) 2013-2018, James Simpson of GoldFire Studios | MIT License | howlerjs.com */\" src/howler.core.js -c -m --screw-ie8 -o dist/howler.core.min.js && uglifyjs --preamble \"/*! howler.js $VERSION | Spatial Plugin | (c) 2013-2018, James Simpson of GoldFire Studios | MIT License | howlerjs.com */\" src/plugins/howler.spatial.js -c -m --screw-ie8 -o dist/howler.spatial.min.js && awk 'FNR==1{echo \"\"}1' dist/howler.core.min.js dist/howler.spatial.min.js | sed '3s~.*~/*! Spatial Plugin */~' | perl -pe 'chomp if eof' > dist/howler.min.js && awk '(NR>1 && FNR==1){printf (\"\\n\\n\")};1' src/howler.core.js src/plugins/howler.spatial.js > dist/howler.js", + "build": "VERSION=`printf 'v' && node -e 'console.log(require(\"./package.json\").version)'` && sed -i '' '2s/.*/ * howler.js '\"$VERSION\"'/' src/howler.core.js && sed -i '' '4s/.*/ * howler.js '\"$VERSION\"'/' src/plugins/howler.spatial.js && uglifyjs --preamble \"/*! howler.js $VERSION | (c) 2013-2019, James Simpson of GoldFire Studios | MIT License | howlerjs.com */\" src/howler.core.js -c -m --screw-ie8 -o dist/howler.core.min.js && uglifyjs --preamble \"/*! howler.js $VERSION | Spatial Plugin | (c) 2013-2019, James Simpson of GoldFire Studios | MIT License | howlerjs.com */\" src/plugins/howler.spatial.js -c -m --screw-ie8 -o dist/howler.spatial.min.js && awk 'FNR==1{echo \"\"}1' dist/howler.core.min.js dist/howler.spatial.min.js | sed '3s~.*~/*! Spatial Plugin */~' | perl -pe 'chomp if eof' > dist/howler.min.js && awk '(NR>1 && FNR==1){printf (\"\\n\\n\")};1' src/howler.core.js src/plugins/howler.spatial.js > dist/howler.js", "release": "VERSION=`printf 'v' && node -e 'console.log(require(\"./package.json\").version)'` && git tag $VERSION && git push && git push origin $VERSION && npm publish" }, "devDependencies": { diff --git a/src/howler.core.js b/src/howler.core.js index aa87dc4a..5a1543b9 100644 --- a/src/howler.core.js +++ b/src/howler.core.js @@ -2,7 +2,7 @@ * howler.js v2.1.1 * howlerjs.com * - * (c) 2013-2018, James Simpson of GoldFire Studios + * (c) 2013-2019, James Simpson of GoldFire Studios * goldfirestudios.com * * MIT License diff --git a/src/plugins/howler.spatial.js b/src/plugins/howler.spatial.js index ff8709ca..7ec33c72 100644 --- a/src/plugins/howler.spatial.js +++ b/src/plugins/howler.spatial.js @@ -4,7 +4,7 @@ * howler.js v2.1.1 * howlerjs.com * - * (c) 2013-2018, James Simpson of GoldFire Studios + * (c) 2013-2019, James Simpson of GoldFire Studios * goldfirestudios.com * * MIT License