function resolveStreamable(url, index) {
		SC.get('/resolve/?url=' + url, function (sound) {
			/*
   	If streamable we get the url and bind the client ID to the end
   	so Amplitude can just stream the song normally. We then overwrite
   	the url the user provided with the streamable URL.
   */
			if (sound.streamable) {
				_config2.default.songs[index].url = sound.stream_url + '?client_id=' + _config2.default.soundcloud_client;

				/*
    	If the user want's to use soundcloud art, we overwrite the
    	cover_art_url with the soundcloud artwork url.
    */
				if (_config2.default.soundcloud_use_art) {
					_config2.default.songs[index].cover_art_url = sound.artwork_url;
				}

				/*
    	Grab the extra metadata from soundcloud and bind it to the
    	song.  The user can get this through the public function:
    	getActiveSongMetadata
    */
				_config2.default.songs[index].soundcloud_data = sound;
			} else {
				/*
    	If not streamable, then we print a message to the user stating
    	that the song with name X and artist X is not streamable. This
    	gets printed ONLY if they have debug turned on.
    */
				_helpers2.default.writeDebugMessage(_config2.default.songs[index].name + ' by ' + _config2.default.songs[index].artist + ' is not streamable by the Soundcloud API');
			}
			/*
   	Increments the song ready counter.
   */
			_config2.default.soundcloud_songs_ready++;

			/*
   	When all songs are accounted for, then amplitude is ready
   	to rock and we set the rest of the config.
   */
			if (_config2.default.soundcloud_songs_ready == _config2.default.soundcloud_song_count) {
				_init2.default.setConfig(tempUserConfig);
			}
		});
	}
/**
  * Due to Soundcloud SDK being asynchronous, we need to scope the
  * index of the song in another function. The privateGetSoundcloudStreamableURLs
  * function does the actual iteration and scoping.
  *
  * @access private
  * @param {string} url 		- URL of the soundcloud song
  * @param {number} index 	- The index of the soundcloud song in the songs array.
  */
Due to Soundcloud SDK being asynchronous, we need to scope the
index of the song in another function. The privateGetSoundcloudStreamableURLs
function does the actual iteration and scoping.

@access private
@param {string} url                 - URL of the soundcloud song
@param {number} index       - The index of the soundcloud song in the songs array.
Due to Soundcloud SDK being asynchronous we need to scope the index of the song in another function . The privateGetSoundcloudStreamableURLs function does the actual iteration and scoping . @access private @param { string } url - URL of the soundcloud song @param { number } index - The index of the soundcloud song in the songs array .
function resolveStreamable(url, index) {
		SC.get('/resolve/?url=' + url, function (sound) {
			if (sound.streamable) {
				_config2.default.songs[index].url = sound.stream_url + '?client_id=' + _config2.default.soundcloud_client;
				if (_config2.default.soundcloud_use_art) {
					_config2.default.songs[index].cover_art_url = sound.artwork_url;
				}
				_config2.default.songs[index].soundcloud_data = sound;
			} else {
				_helpers2.default.writeDebugMessage(_config2.default.songs[index].name + ' by ' + _config2.default.songs[index].artist + ' is not streamable by the Soundcloud API');
			}
			_config2.default.soundcloud_songs_ready++;
			if (_config2.default.soundcloud_songs_ready == _config2.default.soundcloud_song_count) {
				_init2.default.setConfig(tempUserConfig);
			}
		});
	}
function resolveStreamable ( url , index ) { SC . get ( '/resolve/?url=' + url , function ( sound ) { if ( sound . streamable ) { _config2 . default . songs [ index ] . url = sound . stream_url + '?client_id=' + _config2 . default . soundcloud_client ; if ( _config2 . default . soundcloud_use_art ) { _config2 . default . songs [ index ] . cover_art_url = sound . artwork_url ; } _config2 . default . songs [ index ] . soundcloud_data = sound ; } else { _helpers2 . default . writeDebugMessage ( _config2 . default . songs [ index ] . name + ' by ' + _config2 . default . songs [ index ] . artist + ' is not streamable by the Soundcloud API' ) ; } _config2 . default . soundcloud_songs_ready ++ ; if ( _config2 . default . soundcloud_songs_ready == _config2 . default . soundcloud_song_count ) { _init2 . default . setConfig ( tempUserConfig ) ; } } ) ; }
Due to Soundcloud SDK being asynchronous, we need to scope the
 index of the song in another function.
Due to Soundcloud SDK being asynchronous we need to scope the index of the song in another function .
/*
   	If streamable we get the url and bind the client ID to the end
   	so Amplitude can just stream the song normally. We then overwrite
   	the url the user provided with the streamable URL.
   */ /*
    	If the user want's to use soundcloud art, we overwrite the
    	cover_art_url with the soundcloud artwork url.
    */ /*
    	Grab the extra metadata from soundcloud and bind it to the
    	song.  The user can get this through the public function:
    	getActiveSongMetadata
    */ /*
    	If not streamable, then we print a message to the user stating
    	that the song with name X and artist X is not streamable. This
    	gets printed ONLY if they have debug turned on.
    */ /*
   	Increments the song ready counter.
   */ /*
   	When all songs are accounted for, then amplitude is ready
   	to rock and we set the rest of the config.
   */