code: function buildArgs (source, givenOutput, loop, initialVolume, showOsd) {
  	let output = '';
  
  	if (givenOutput) {
  
  		if (ALLOWED_OUTPUTS.indexOf(givenOutput) === -1) {
  			throw new Error(`Output ${givenOutput} not allowed.`);
  		}
  
  		output = givenOutput;
  
  	} else {
  		output = 'local';
  	}
  
  	let osd = false;
  	if (showOsd) {
  		osd = showOsd;
  	}
  
  	let args = [source, '-o', output, '--blank', osd ? '' : '--no-osd'];
  
  	// Handle the loop argument, if provided
  	if (loop) {
  		args.push('--loop');
  	}
  
  	// Handle the initial volume argument, if provided
  	if (Number.isInteger(initialVolume)) {
  		args.push('--vol', initialVolume);
  	}
  
  	return args;
  
  }
docs: ----- Functions ----- // Creates an array of arguments to pass to omxplayer.