comparison core.js @ 1704:536818090e6a

Updated results XML generator to match documentation syntax.
author Nicholas Jillings <nickjillings@users.noreply.github.com>
date Thu, 09 Apr 2015 10:59:53 +0100
parents 93eaa894cc97
children fef9e8337cfd
comparison
equal deleted inserted replaced
1703:93eaa894cc97 1704:536818090e6a
154 function audioObject(id) { 154 function audioObject(id) {
155 // The main buffer object with common control nodes to the AudioEngine 155 // The main buffer object with common control nodes to the AudioEngine
156 156
157 this.id = id; 157 this.id = id;
158 this.state = 0; // 0 - no data, 1 - ready 158 this.state = 0; // 0 - no data, 1 - ready
159 this.url = null; // Hold the URL given for the output back to the results.
159 160
160 // Create a buffer and external gain control to allow internal patching of effects and volume leveling. 161 // Create a buffer and external gain control to allow internal patching of effects and volume leveling.
161 this.bufferNode = audioContext.createBufferSource(); 162 this.bufferNode = audioContext.createBufferSource();
162 this.outputGain = audioContext.createGain(); 163 this.outputGain = audioContext.createGain();
163 164
184 this.bufferNode.loop = true; 185 this.bufferNode.loop = true;
185 }; 186 };
186 187
187 this.constructTrack = function(url) { 188 this.constructTrack = function(url) {
188 var request = new XMLHttpRequest(); 189 var request = new XMLHttpRequest();
190 this.url = url;
189 request.open('GET',url,true); 191 request.open('GET',url,true);
190 request.responseType = 'arraybuffer'; 192 request.responseType = 'arraybuffer';
191 193
192 var audioObj = this; 194 var audioObj = this;
193 195