Index: trunk/src/scriptbuilder/structures/ScriptIncident.java
===================================================================
--- trunk/src/scriptbuilder/structures/ScriptIncident.java	(revision 150)
+++ trunk/src/scriptbuilder/structures/ScriptIncident.java	(revision 164)
@@ -8,4 +8,7 @@
 import java.util.TreeMap;
 import scriptbuilder.structures.events.I_ScriptEvent;
+import scriptbuilder.structures.ScriptEvent.ScriptEventType;
+import scriptbuilder.structures.events.I_AudioEvent;
+import scriptbuilder.structures.events.AudioEvent;
 
 /**
@@ -71,4 +74,6 @@
      */
     public int eventCount = 0;
+    
+    public int audioEventCount = 0;
 
     public SimulationScript script;
@@ -285,14 +290,28 @@
         //Check to see if there's already a timeslice here
         TimeSlice t = slices.get(start);
+        //logic to check if the added event needs to also have an associated audio event.
+        
         //If not, make one; then, add the event to it
         if (t == null)
         {
             t = new TimeSlice(start, this);
-            t.addEvent(ev);
+            //t.addEvent(ev);
             slices.put(start, t);
         }
         else
         {
-            t.addEvent(ev);
+            //t.addEvent(ev);
+        }
+        t.addEvent(ev);
+        if(ev instanceof I_AudioEvent){
+            //should make a path and a different filename fields for the file itself. Either that or deal with the string separation each time
+            //needs a check for when we move I_AudioEvents in the incident, as to not make duplicate events.
+            String fileName = number+"/"+number + "" + audioEventCount;
+            AudioEvent audio = (AudioEvent) ScriptEvent.factoryByType(ScriptEventType.AUDIO_EVENT);
+            ((I_AudioEvent) ev).setFileName(fileName);
+            audio.setAudioFilePathRelative(fileName);
+            
+            t.addEvent(audio);
+            audioEventCount++;
         }
         eventCount++;
@@ -524,4 +543,10 @@
         if (!(oldTime == 0 && newTime > oldTime))
         {
+            if(evt instanceof I_AudioEvent)
+            {
+                //todo: need to figure out how to remove the audioEvent tha corresponds with the 
+                this.slices.get(oldTime).removeCorrespondingAudioEvent((I_AudioEvent)evt);
+                //this.addNewEvent(evt,newTime)
+            }
             this.slices.get(oldTime).events.remove(evt);
             this.addNewEvent(evt, newTime);
