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); } }
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"; } }
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"; } } }
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); } } }