SHARE
TWEET

Untitled

a guest Aug 7th, 2012 41 Never
  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. };
RAW Paste Data
Top