// Configuration of soundManager audio player.
// For the wrapper, define a "playlist" array and set
// the variable "currentTrack" (to an index in the playlist)

//--------------------------------------------
// Create Sounds
//--------------------------------------------

soundManager.onload = function() {
  // SM2 has loaded - now you can create and play sounds!
  soundManager.createSound('organ','/audio/organ.mp3');
  soundManager.createSound('lapsteel','/audio/lapsteel.mp3');
  soundManager.createSound('bass','/audio/bass.mp3');
  soundManager.createSound('aco','/audio/acoustic.mp3');
};


//--------------------------------------------
// Player configuration (optional)
//--------------------------------------------	
soundManager.debugMode = false;
soundManager.defaultOptions = {
  'autoLoad': false,            	// enable automatic loading (otherwise .load() will be called on demand with .play()..
  'stream': true,               	// allows playing before entire file has loaded (recommended)
  'autoPlay': false,           		// enable playing of file as soon as possible (much faster if "stream" is true)
  'onid3': null,                	// callback function for "ID3 data is added/available"
  'onload': null,  					// callback function for "load finished"
  'whileloading': null,				// callback function for "download progress update" (X of Y bytes received)
  'onplay': null,					// callback for "play" start
  'whileplaying': null,         	// callback during play (position update)
  'onstop': null,               	// callback for "user stop"
  'onfinish': songFinished,			// callback function for "sound finished playing"
  'onbeforefinish': null,       	// callback for "before sound finished playing (at [time])"
  'onbeforefinishtime': 5000,   	// offset (milliseconds) before end of sound to trigger beforefinish..
  'onbeforefinishcomplete':null,	// function to call when said sound finishes playing
  'onjustbeforefinish':null,     	// callback for [n] msec before end of current sound
  'onjustbeforefinishtime':200,  	// [n] - if not using, set to 0 (or null handler) and event will not fire.
  'multiShot': false,             	// let sounds "restart" or layer on top of each other when played multiple times..
  'pan': 0,                      	// "pan" settings, left-to-right, -100 to 100
  'volume': 100,                  	// self-explanatory. 0-100, the latter being the max.
  'playNext': false					// self-explanatory. play next sound or not
}
