Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Aug 7th, 2012  |  syntax: None  |  size: 0.83 KB  |  views: 37  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. var audio = {
  2.     initialize: function()
  3.     {
  4.         this.loadAll();
  5.     },
  6.     loadAll: function()
  7.     {
  8.         LowLatencyAudio.preloadAudio('audio1', 'assets/track1.mp3', 6);
  9.         LowLatencyAudio.preloadAudio('audio2', 'assets/track2.mp3', 6);
  10.         LowLatencyAudio.preloadAudio('audio3', 'assets/track3.mp3', 6);
  11.         LowLatencyAudio.preloadAudio('audio4', 'assets/track4.mp3', 6);
  12.         LowLatencyAudio.preloadAudio('audio5', 'assets/track5.mp3', 6);
  13.         LowLatencyAudio.preloadAudio('audio6', 'assets/track6.mp3', 6);
  14.     },
  15.     overlap: function()
  16.     {
  17.         LowLatencyAudio.loop('audio1');
  18.         LowLatencyAudio.loop('audio2');
  19.         LowLatencyAudio.loop('audio3');
  20.         LowLatencyAudio.loop('audio4');
  21.         LowLatencyAudio.loop('audio5');
  22.         LowLatencyAudio.loop('audio6');
  23.  
  24.     }
  25. };
clone this paste RAW Paste Data