Mixer = function () {
	this.mix = []
}

//Adds a track to the mix. Takes args = {url: sound.aws.com, divId: 1}
Mixer.prototype.addTrack = function (args) {
	var newTrack = new Howl({
		url : [args['url']]
	}); 
	this.mix[args['divId']] = newTrack
}

Mixer.prototype.removeTrack = function (arrayPosition) {
	this.mix[arrayPosition] = null
}

Mixer = function () {
	this.mix = []
}

//Adds a track to the mix. Takes args = {url: sound.aws.com, divId: 1}
Mixer.prototype.addTrack = function (args) {
	var newTrack = new Howl({
		url : [args['url']]
	}); 
	this.mix[args['divId']] = newTrack;
}

Mixer.prototype.removeTrack = function (arrayPosition) {
	this.mix[arrayPosition] = null;
}

Mixer.prototype.globalPlay = function () {
	for (var i = 0; i< this.mix.length; i++) { 
		this.mix[i].play()
	}
}

Mixer.prototype.globalPause = function () {
	for (var i = 0; i< this.mix.length; i++) { 
		this.mix[i].pause()
	}
}

Write globalPause and globalPlay methods for Mixer model
Write globalPause and globalPlay methods for Mixer model
