package com.gamebrewers.speedgame09;

import java.applet.Applet;
import java.applet.AudioClip;
import java.net.MalformedURLException;
import java.net.URL;

public class AudioLoader {
	public static AudioClip laser, teleport, pulse, crescent, click, no, warning, gethome, hit, explode, music, powerup, win;
	
	public static void initiate() {
		 try {
			win = Applet.newAudioClip(new URL("file:audio/win.wav"));
			powerup = Applet.newAudioClip(new URL("file:audio/powerup.wav"));
			laser = Applet.newAudioClip(new URL("file:audio/laser.wav"));
			click = Applet.newAudioClip(new URL("file:audio/click.wav"));
			crescent = Applet.newAudioClip(new URL("file:audio/crescent.wav"));
			teleport = Applet.newAudioClip(new URL("file:audio/teleport.wav"));
			pulse = Applet.newAudioClip(new URL("file:audio/pulse.wav"));
			no = Applet.newAudioClip(new URL("file:audio/no.wav"));
			warning = Applet.newAudioClip(new URL("file:audio/warning.wav"));
			gethome = Applet.newAudioClip(new URL("file:audio/gethome.wav"));
			hit = Applet.newAudioClip(new URL("file:audio/hit.wav"));
			explode = Applet.newAudioClip(new URL("file:audio/explode.wav"));
			music = Applet.newAudioClip(new URL("file:audio/music.wav"));
		} catch (MalformedURLException e) {
			e.printStackTrace();
		}
	}
}
