Permalink
Browse files

Update to SoundJS version 0.2.0

SoundJS 0.2.0 offers an even better way to work with audio in HTML5, including a target plugin model. This commit includes the FlashPlugin for fallback support. Check out the TestSuite for usage.

Signed-off-by: Lanny McNie <lanny@gskinner.com>
  • Loading branch information...
lannymcnie committed Apr 3, 2012
1 parent ec02ffc commit 12fbc692451e6830570d5e1310d34c6d8c8c3bfa
Showing with 5,915 additions and 3,940 deletions.
  1. +28 −5 README.txt
  2. +11 −0 VERSIONS.txt
  3. BIN assets/music.mp3
  4. +405 −397 build/build.js
  5. +31 −0 build/flashplugin-license.txt
  6. +27 −27 build/license.txt
  7. BIN build/template/assets/logo.png
  8. +682 −682 build/template/main.tmpl
  9. BIN build/tools/yuidoc/bin/const.pyc
  10. BIN build/tools/yuidoc/bin/yuidoc_generate.pyc
  11. BIN build/tools/yuidoc/bin/yuidoc_highlight.pyc
  12. BIN build/tools/yuidoc/bin/yuidoc_parse.pyc
  13. BIN dev/.DS_Store
  14. BIN dev/FlashAudioPlugin.fla
  15. +1 −0 dev/com/gskinner/soundjs/FlashAudioPlugin.as
  16. BIN docs/SoundJS_docs-0.2.0.zip
  17. BIN docs/SoundJS_docs.zip
  18. +469 −0 examples/Game.html
  19. +70 −0 examples/PreloadAndPlay.html
  20. +127 −0 examples/SoundGrid.html
  21. +454 −302 examples/TestSuite.html
  22. BIN examples/assets/.DS_Store
  23. BIN { → examples}/assets/18-machinae_supremacy-lord_krutors_dominion.mp3
  24. BIN { → examples}/assets/18-machinae_supremacy-lord_krutors_dominion.ogg
  25. BIN examples/assets/FlashAudioPlugin.swf
  26. BIN { → examples}/assets/GU-StealDaisy.mp3
  27. BIN { → examples}/assets/GU-StealDaisy.ogg
  28. BIN { → examples}/assets/Game-Break.mp3
  29. BIN { → examples}/assets/Game-Break.ogg
  30. BIN { → examples}/assets/Game-Death.mp3
  31. BIN { → examples}/assets/Game-Death.ogg
  32. BIN { → examples}/assets/Game-Shot.mp3
  33. BIN { → examples}/assets/Game-Shot.ogg
  34. BIN { → examples}/assets/Game-Spawn.mp3
  35. BIN { → examples}/assets/Game-Spawn.ogg
  36. BIN { → examples}/assets/Humm.mp3
  37. BIN { → examples}/assets/Humm.ogg
  38. BIN { → examples}/assets/M-GameBG.mp3
  39. BIN { → examples}/assets/M-GameBG.ogg
  40. BIN { → examples}/assets/R-Damage.mp3
  41. BIN { → examples}/assets/R-Damage.ogg
  42. BIN { → examples}/assets/S-Damage.mp3
  43. BIN { → examples}/assets/S-Damage.ogg
  44. 0 examples/{game → assets}/Ship.js
  45. 0 examples/{game → assets}/SpaceRock.js
  46. BIN { → examples}/assets/Thunder1.mp3
  47. BIN { → examples}/assets/Thunder1.ogg
  48. BIN { → examples}/assets/ToneWobble.mp3
  49. BIN { → examples}/assets/ToneWobble.ogg
  50. BIN { → examples}/assets/U-CabinBoy3.mp3
  51. BIN { → examples}/assets/U-CabinBoy3.ogg
  52. BIN examples/assets/audioButtonSheet.png
  53. BIN examples/assets/css/images/ui-bg_flat_30_cccccc_40x100.png
  54. BIN examples/assets/css/images/ui-bg_flat_50_5c5c5c_40x100.png
  55. BIN examples/assets/css/images/ui-bg_glass_40_ffc73d_1x400.png
  56. BIN examples/assets/css/images/ui-bg_highlight-hard_20_0972a5_1x100.png
  57. BIN examples/assets/css/images/ui-bg_highlight-soft_33_003147_1x100.png
  58. BIN examples/assets/css/images/ui-bg_highlight-soft_35_222222_1x100.png
  59. BIN examples/assets/css/images/ui-bg_highlight-soft_44_444444_1x100.png
  60. BIN examples/assets/css/images/ui-bg_highlight-soft_80_eeeeee_1x100.png
  61. BIN examples/assets/css/images/ui-bg_loop_25_000000_21x21.png
  62. BIN examples/assets/css/images/ui-icons_222222_256x240.png
  63. BIN examples/assets/css/images/ui-icons_4b8e0b_256x240.png
  64. BIN examples/assets/css/images/ui-icons_a83300_256x240.png
  65. BIN examples/assets/css/images/ui-icons_cccccc_256x240.png
  66. BIN examples/assets/css/images/ui-icons_ffffff_256x240.png
  67. +565 −0 examples/assets/css/jquery-ui-1.8.18.custom.css
  68. BIN examples/assets/demo-soundGrid.png
  69. +21 −0 examples/assets/demoStyles.css
  70. +171 −158 examples/convolution.html
  71. +0 −201 examples/dynamicInstance.html
  72. +0 −484 examples/game/game.html
  73. +0 −166 examples/interrupt.html
  74. +0 −111 examples/masterVolume.html
  75. +0 −15 examples/styles.css
  76. BIN img/bg.gif
  77. BIN img/callout_bg.gif
  78. BIN img/flourish.gif
  79. BIN img/flourish2.gif
  80. BIN img/logo.gif
  81. BIN img/logo.png
  82. +0 −78 index.html
  83. +0 −43 lib/sound.js
  84. +48 −0 lib/soundjs-0.2.0.min.js
  85. +59 −0 lib/soundjs.flashplugin-0.2.0.min.js
  86. BIN src/soundjs/FlashAudioPlugin.swf
  87. +598 −0 src/soundjs/FlashPlugin.js
  88. +593 −0 src/soundjs/HTMLAudioPlugin.js
  89. +778 −1,182 src/soundjs/SoundJS.js
  90. +777 −0 src/swfobject.js
  91. +0 −89 styles.css
View
@@ -1,5 +1,28 @@
-The SoundJS JavaScript library provides a simple API, and some powerful features to make working with audio a breeze.
-
-- .add() - Too many sound instances on page (combined between all sounds) will stop sound working, this varies on browser/hardware safest number is found max of 35 channels
-
-- .play() - Too many playing instances (combined between all sounds) will stop sound working till all windows are closed. The exact number is undefined but has been observed as low as 10 looping sounds in Chrome.
+SOUNDJS LIBRARY:
+
+SoundJS is a library to make working with the audio on the web easier. It provides a consistent API for playing audio in different browsers, including using a target plugin model to provide an easy way to provide additional audio plugins like Web Audio, and a Flash fallback. A mechanism has been provided for easily tying in audio preloading to PreloadJS (http://preloadjs.com)
+
+The home page for SoundJS can be found at http://soundjs.com/
+
+There is a GitHub repository, which includes downloads, issue tracking, & a wiki at https://github.com/CreateJS/SoundjS/
+
+It was built by gskinner.com, and is released for free under the MIT license, which means you can use it for almost any purpose (including commercial projects). We appreciate credit where possible, but it is not a requirement.
+
+SoundJS is currently in alpha. We will be making significant improvements to the library, samples, and documentation over the coming weeks. Please be aware that this may necessitate changes to the existing API.
+
+
+The key classes are:
+
+SoundJS
+The core API for playing sounds. Simply call SoundJS.play(sound, options), and a sound instance is created that can be used to control the audio, and receive events when it is complete, loops, or is interrupted.
+
+SoundInstance
+A controllable sound object that wraps the actual plugin implementation, providing a consistent API for audio playback, no matter what happens in the background. Sound instances can be paused, muted, and stopped, and the volume, pan (where available), and position using the simple API.
+
+HTMLAudioPlugin
+The default, built-in plugin, which manages audio playback via the HTML5 <audio> tag.
+
+FlashPlugin
+An additional plugin which uses a flash shim (and SWFObject) to playback audio using Flash.
+
+Have a look at the included examples and API documentation for more in-depth information.
View
@@ -0,0 +1,11 @@
+Version 0.2.0
+****************************************************************************************************
+Second release, corresponding with the release of the CreateJS suite of tools (createjs.com).
+This version includes a target plugin model that abstracts audio playback to various plugins, which
+can be prioritized. Other updates include controllable sound instances, which are returned when a
+sound is played, providing a much easier way to control audio once it has started playback.
+
+
+Version 0.1.0
+****************************************************************************************************
+Initial release.
View
Binary file not shown.
Oops, something went wrong.

0 comments on commit 12fbc69

Please sign in to comment.