Play() 공개 메소드

public Play ( string pathtoafc = "" ) : void
pathtoafc string
리턴 void
예제 #1
0
 public void PlaySound()
 {
     if (listView1.SelectedItems.Count != 1 || pcc == null)
         return;
     ListViewItem item = listView1.SelectedItems[0];
     int index = Convert.ToInt32(item.Name);
     if (pcc.Exports[index].ClassName == "WwiseStream")
     {
         w = new WwiseStream(pcc, pcc.Exports[index].Data);
         w.Play(pathCooked);
     }
 }
예제 #2
0
 private void playToolStripMenuItem_Click(object sender, EventArgs e)
 {
     int n = listBox1.SelectedIndex;
     if (n == -1)
         return;
     int index = ObjectIndexes[n];
     PCCObject.ExportEntry ex = pcc.Exports[index];
     if (ex.ClassName == "WwiseStream")
     {
         Stop();
         w = new WwiseStream(pcc, ex.Data);
         string path = ME3Directory.cookedPath;
         Status.Text = "Loading...";
         w.Play(path);
         Status.Text = "Ready";
     }
 }
예제 #3
0
 private void playToolStripMenuItem_Click(object sender, EventArgs e)
 {
     int n = listBox1.SelectedIndex;
     if (n == -1)
         return;
     int index = ObjectIndexes[n];
     IExportEntry ex = pcc.Exports[index];
     if (ex.ClassName == "WwiseStream")
     {
         Stop();
         w = new WwiseStream(pcc as ME3Package, index);
         string path;
         if (w.IsPCCStored)
         {
             path = pcc.FileName;
         }
         else
         {
             path = getPathToAFC();
         }
         if (path != "")
         {
             Status.Text = "Loading...";
             w.Play(path);
             Status.Text = "Ready";
         }
     }
 }
예제 #4
0
 public void PlaySound()
 {
     if (listView1.SelectedItems.Count != 1 || pcc == null)
         return;
     ListViewItem item = listView1.SelectedItems[0];
     int index = Convert.ToInt32(item.Name);
     if (pcc.Exports[index].ClassName == "WwiseStream")
     {
         using (ME3Package package = MEPackageHandler.OpenME3Package(pcc.pccFileName))
         {
             w = new WwiseStream(package, index);
             w.Play(pathCooked);
         }
     }
 }